MCPcopy Index your code
hub / github.com/sqlmapproject/sqlmap / _wrap_text

Method _wrap_text

lib/utils/tui.py:266–283  ·  view source on GitHub ↗

Wrap text to fit within width

(self, text, width)

Source from the content-addressed store, hash-verified

264 pass
265
266 def _wrap_text(self, text, width):
267 """Wrap text to fit within width"""
268 words = text.split()
269 lines = []
270 current_line = ""
271
272 for word in words:
273 if len(current_line) + len(word) + 1 <= width:
274 current_line += word + " "
275 else:
276 if current_line:
277 lines.append(current_line.strip())
278 current_line = word + " "
279
280 if current_line:
281 lines.append(current_line.strip())
282
283 return lines
284
285 def _edit_field(self):
286 """Edit the current field"""

Callers 1

_draw_current_tabMethod · 0.95

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected