Fossil SCM

Fixed a semantic constant misuse in the wiki renderer discovered while doing the prior commit. No functional change, but it straightens out a mask-vs-attribute ID cross-up.

wyoung 2026-06-21 14:29 UTC safe-html-extensions
Commit f1c08fdff1841bba7679e354cc13654f20bb90ac1ded58c206ac316bb8070c97
1 file changed +1 -1
--- src/wikiformat.c
+++ src/wikiformat.c
@@ -1790,11 +1790,11 @@
17901790
17911791
/* Convert <title> to <h1 align='center'> */
17921792
if( markup.iCode==MARKUP_TITLE && !p->inVerbatim ){
17931793
markup.iCode = MARKUP_H1;
17941794
markup.nAttr = 1;
1795
- markup.aAttr[0].iACode = AMSK_ALIGN;
1795
+ markup.aAttr[0].iACode = ATTR_ALIGN;
17961796
markup.aAttr[0].zValue = "center";
17971797
markup.aAttr[0].cTerm = 0;
17981798
}
17991799
18001800
/* Markup of the form </div id=ID> where there is a matching
18011801
--- src/wikiformat.c
+++ src/wikiformat.c
@@ -1790,11 +1790,11 @@
1790
1791 /* Convert <title> to <h1 align='center'> */
1792 if( markup.iCode==MARKUP_TITLE && !p->inVerbatim ){
1793 markup.iCode = MARKUP_H1;
1794 markup.nAttr = 1;
1795 markup.aAttr[0].iACode = AMSK_ALIGN;
1796 markup.aAttr[0].zValue = "center";
1797 markup.aAttr[0].cTerm = 0;
1798 }
1799
1800 /* Markup of the form </div id=ID> where there is a matching
1801
--- src/wikiformat.c
+++ src/wikiformat.c
@@ -1790,11 +1790,11 @@
1790
1791 /* Convert <title> to <h1 align='center'> */
1792 if( markup.iCode==MARKUP_TITLE && !p->inVerbatim ){
1793 markup.iCode = MARKUP_H1;
1794 markup.nAttr = 1;
1795 markup.aAttr[0].iACode = ATTR_ALIGN;
1796 markup.aAttr[0].zValue = "center";
1797 markup.aAttr[0].cTerm = 0;
1798 }
1799
1800 /* Markup of the form </div id=ID> where there is a matching
1801

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button