Skip to content

Commit e57ae06

Browse files
author
livecodeali
committed
[[ Bug 14970 ]] Correct tables in dictionary entry for HTMLText property
1 parent 778b10e commit e57ae06

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

docs/dictionary/property/HTMLText.lcdoc

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ Encloses text whose <textFont>, <textSize>, <foregroundColor>, or <backgroundCol
7575
In standard HTML, the size attribute normally takes a value between 1 and 7, representing a relative text size, with 3 being the normal text size for the web page. To accommodate this convention, when setting the <HTMLText> of a <field(keyword)>, if the pointSize is between 1 and 7, the <textSize> of the text is set to a standard value:
7676

7777
pointSize | textSize
78-
--------------------
78+
:----------:|:---------:
7979
1 | 8 point
8080
2 | 10 point
8181
3 | 12 point
@@ -96,8 +96,9 @@ Encloses text whose textStyle is "link" or whose <linkText> <property> is not em
9696
Replaces a character whose imageSource <property> is not empty. The value of the <imageSource> <property> is included as the value of the "src" attribute.
9797

9898
When you set the <HTMLText> of a <field(keyword)>, all tags other than those above are ignored, except heading tags (&lt;h1&gt;--&lt;h6&gt;), which change the size of the text in the heading element:
99+
99100
tag | textSize
100-
--------------
101+
:----:|:---------:
101102
&lt;h1&gt; | 34 point
102103
&lt;h2&gt; | 24 point
103104
&lt;h3&gt; | 18 point
@@ -110,8 +111,9 @@ You can use LiveCode color references for the "color" and "bgcolor" attributes.
110111
If a chunk of text includes more than one of the above styles, LiveCode encloses the text in the tags corresponding to each style, from the inside out. For example, if the word "Flail" in a field is underlined and bold, its corresponding <HTMLText> is "&lt;u&gt;&lt;b&gt;Flail&lt;/b&gt;&lt;/u&gt;".
111112

112113
Special characters (whose ASCII value is greater than 127) are <encode|encoded> as <HTML> entities. LiveCode recognizes the following named entities:
114+
113115
character | entity
114-
------------------
116+
:----------:|:-------:
115117
Á | &amp;Aacute;
116118
á | &amp;aacute;
117119
 | &amp;Acirc;

docs/notes/bugfix-14970.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Dictionary: Tables not correctly specified in htmltext entry

0 commit comments

Comments
 (0)