Not logged in. · Lost password · Register
Forum: General Help and Support Syntax and Usage RSS
<code> tag in dokuwiki tables
Avatar
dokuwikiuserTA #1
Member since Mar 2017 · 1 post
Group memberships: Members
Show profile · Link to this post
Subject: <code> tag in dokuwiki tables
How can I force dokuwiki to do line-breaks in code-blocks used in tables?

For example: When

<code xml>
<tag1> bla bla bla</tag1>
<tag2> bla bla bla</tag2>
</code>

is used the code-block is displayed as desired:
[Image: http://fs5.directupload.net/images/170315/m9dzzcor.png]

But when I use this syntax within a table, everything is displayed on the same line:
[Image: http://fs5.directupload.net/images/170315/7a7fqb8e.png]

I've already tried to force linebreaks via XML declaration, but no success.

possible "workaround" is to format the raw data and do not use the table editor:

Use of this

^   ^                                                                                ^
|   | <code xml> 
<tag1> bla bla bla</tag1>  
<tag2> bla bla bla</tag2>    
</code>  |

leads to this

[Image: http://fs5.directupload.net/images/170315/8jiq2k4z.png]

But after an edit of the table via the table editor, it is again displayed as shown before:
[Image: http://fs5.directupload.net/images/170315/7a7fqb8e.png]
Avatar
SFITCS #2
User title: Scott Ferguson
Member since Dec 2014 · 455 posts · Location: Canberra, Australia
Group memberships: Members
Show profile · Link to this post
I don't use the table editor - so I'd never encounter that before, but you are correct. That's a definite bug in the table editor. Please file a bug report.

i.e.
^Stuff^Other Stuff^
|Something|<code xml>
<tag1> bla bla bla</tag1>
<tag2> bla bla bla</tag2>
</code>|
Works fine - it only breaks if later edited using the table editor.

I'm not sure what you were expecting with
\\ <tag1> bla bla bla</tag1>\\ <tag2> bla bla bla</tag2>\\


This works fine for me
^Stuff^Other Stuff^
|Something|<tag1> bla bla bla</tag1> \\ <tag2> bla bla bla</tag2>|
  (remove the attempt to force a newline before and after your content)
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2017-09-20, 11:27:24 (UTC +02:00)