Home » U++ Library support » RichText,QTF,RTF... » Allow line-break after '-' sign within a word?
Re: Allow line-break after '-' sign within a word? [message #40450 is a reply to message #40448] |
Sat, 03 August 2013 08:38 |
|
Hi zsolt,
If you talk about DocEdit, then the responsible code is in DocEdit::Format(const WString& text) const, in CtrlLib/DocEdit.cpp.
I think that you'd just need to add check for '-' in this part: if(*s == ' ' || *s == '\t') {
space = s;
spacex = x + cw;
*s = ' ';
}
I did not try it, but it should be quite straightforward
Best regards,
Honza
|
|
|
Goto Forum:
Current Time: Mon Apr 29 02:51:02 CEST 2024
Total time taken to generate the page: 0.02178 seconds
|