Turning off rendering VT as a return?
Richard Gaskin
ambassador at fourthworld.com
Sun Aug 11 22:38:51 EDT 2013
Earlier I wrote:
> Before the big field rewrite a couple versions back, any Vertical
> Tab ("VT", ASCII 11) characters in a field just rendered as a
> non-printable character.
>
> But after the big field rewrite, VTs are now used as a way to provide
> return-like appearance within a field table, so now VTs have more or
> less the same visual appearance as CR.
>
> IIRC this was explained in the Release Notes for the version this
> change was introduced in, but despite my best effort to alert RunRev
> most of the details describing the new field behaviors are not in
> the current documentation set.
>
> So in short: Anyone here know how to turn off the rendering of VTs
> as returns so I can see only true ASCII 10s as the line breaks, like
> I've enjoyed for the last 25 years?
After prowling around my hard drive I found that the v5.5.4 docs are the
most recent I can find which have Release Notes describing the new field
features.
Among the other critically important information there currently absent
from the docs is this bit that answers my question:
Explicit line-breaks in fields (5.5 DP2 – experimental)
The engine will now interpret a numToChar(11) character in a
field paragraph as an explicit line- break when the (effective)
dontWrap of the paragraph is false. This allows multiple ‘lines’
to be displayed within a single paragraph.
The formattedText property has been updated to map any explicit
line breaks to newlines.
Note that since the vGrid property turns dontWrap on for the
paragraph, using the line-break char in table paragraphs will have
no effect.
The Message Box doesn't have its dontwrap set, so there's no way to see
the natural wrappings of your text there. As a workaround during
development I've found you can simply add a field with dontWrap set to
true and put any data you need to review there instead.
--
Richard Gaskin
Fourth World
LiveCode training and consulting: http://www.fourthworld.com
Webzine for LiveCode developers: http://www.LiveCodeJournal.com
Follow me on Twitter: http://twitter.com/FourthWorldSys
More information about the use-livecode
mailing list