Skip to content

Commit f97b599

Browse files
authored
Fix #10506: document how columns are counted in std.string.wrap. (#10834)
1 parent d9b9f77 commit f97b599

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

std/string.d

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6864,6 +6864,11 @@ if (isConvertibleToString!Range)
68646864
* tabsize = column spacing of tabs in firstindent[] and indent[]
68656865
* Returns:
68666866
* resulting paragraph as an allocated string
6867+
* Bugs:
6868+
* Columns are counted as the number of code points in the string. This may
6869+
* not correspond with the actual number of columns displayed if the string
6870+
* contains combining characters, modifiers, zero-width characters, or
6871+
* double-width characters.
68676872
*/
68686873

68696874
S wrap(S)(S s, in size_t columns = 80, S firstindent = null,

0 commit comments

Comments
 (0)