Opened 14 years ago
Last modified 14 years ago
#1144 closed defect
Función Wrap de BText — at Version 2
Reported by: | Víctor de Buen Remiro | Owned by: | Víctor de Buen Remiro |
---|---|---|---|
Priority: | normal | Milestone: | Mantainance |
Component: | Kernel | Version: | head |
Severity: | normal | Keywords: | |
Cc: |
Description (last modified by )
En tareas como generación automática de documentación puede ser muy útil una función que corte las líneas a un ancho máximo para su visualización en entornos que no permitan hacerlo de forma virtual como es el caso de las cajas de texto con sintaxis resaltada de este TRAC.
La API podría ser algo así
/* Breaks lines with more than maxLineLength characters. Only when a character in wordSeparators it will insert a line break. If prefix is not empty it will be insert after each new break line. */ Text Wrap(Text textToWrap, Text maxLineLength [, Text wordSeparators=" ", Text prefix=""])
Change History (2)
comment:1 Changed 14 years ago by
Description: | modified (diff) |
---|---|
Status: | new → accepted |
comment:2 Changed 14 years ago by
Description: | modified (diff) |
---|
Note: See
TracTickets for help on using
tickets.