Topic on Extension talk:SQL2Wiki

Escaping leading-space formatting on result strings

2
86.101.250.146 (talkcontribs)

I am using Wiki ad automated program documentation page. I have an external preprocessor , which extracts commented string from Oracle plsql source codes.

BEGIN
-- fictional code
IF --Comm4Wiki
   L_PARAM1 >100 THEN 
   RETURN 'SIZE LIMIT EXCEEDED';--/Comm4Wiki
END IF;

IF --Comm4Wiki
L_PARAM1 >TRUNC(L_PARAM1) THEN RETURN 'FRACTIONS not ACCEPTED';--/Comm4Wiki
END IF;
.
.
.
. 
END;

My preprocessor extracts everything between Comm4Wiki tags, inserting 2 lines in a table:

string 1, two lines starting with 4 spaces>

   L_PARAM1 >100 THEN 
   RETURN 'SIZE LIMIT EXCEEDED';

string 2>L_PARAM1 >TRUNC(L_PARAM1) THEN RETURN 'FRACTIONS not ACCEPTED';


My Wiki page extracts the lines with sql2wiki.

I do not want to remove leading spaces. How can I manage not to have string1 highlighted because of leading spaces?

145.236.252.35 (talkcontribs)

I have recently realized that query resulting more than one row behaves strange.

I use inline, preexpand, expand, noheader = true options, in addition I encapsulate every line in <nowiki> tags

If I have to sql lines each of them starting with spaces then -the first line performs nowiki formatting, I mean it pops up normal, unformatted inline text; -the further rows are presented in box , because of the leading spaces.

Reply to "Escaping leading-space formatting on result strings"