cancel
Showing results for 
Search instead for 
Did you mean: 

Preformatted text in wiki

zenobiusz
Champ in-the-making
Champ in-the-making
Hi,

Is it possible to add  in wiki code within preformatted text ?

For example, preformatted text can look like this:

<table>
   <class>class_path</class>
   <name>Home</name>
   <column>
      <name>column_name_xxx</name>
      <field>field_name_xxx</field>
      <field_type>String</field_type>
      <name_type>String</name_type>
   </column>
</table>

When I tried to add text like this (without any special markup) to wiki and later I wanted to edit it in Text Editor (Edit page link) all words in "<..>" disappear.

In editor it looks like this:

   class_path
   Home

      column_name_xxx
      field_name_xxx
      String
      String



Thanks for any help.

                         Zeno
3 REPLIES 3

mikeh
Star Contributor
Star Contributor
It should be possible, so that's a bug - please see https://issues.alfresco.com/jira/browse/ETHREEOH-1867

I'll fix and commit to HEAD now.

UPDATE: The fix is now in SVN HEAD.

Thanks,
Mike

zarzuela
Champ in-the-making
Champ in-the-making
How would I get this fix into labs 3.0 ?

doiheartwentyon
Champ in-the-making
Champ in-the-making
I can't get any kind of preformatted text in the 3.2 wiki. The <> bug is fixed, but selecting "Preformatted" doesn't give me preformatted text. Adding "<pre>" in the HTML view doesn't work either - the tags are stipped out straight away.