SID-01256: Twiki ignores my formatting in my entry
| Status: |
Answered |
TWiki version: |
5.0.2 |
Perl version: |
Latest |
| Category: |
CategoryEditing |
Server OS: |
RHEL6 |
Last update: |
14 years ago |
Hello,
Twiki will not obey my formatting of my entry no matter what I do. While editing my entry, it looks EXACTLY the way I want it to, but when I publish it, it changes the formatting and destroys what it is suppose to look like.
In the WYSIWYG editor, if I hit the html button once my entry looks the way I want it, and I copy the section I want, then publish my entry, it removes ALL html formatting it once had, and changes it all to <p> entries, instead of the appropriate tags it should have. I can then go in and re-edit the entry, replacing all the <p> entries with the proper ones, but when I publish it again, it removes all the formatting, and changes it all to <p>. This is SUPER annoying. It worked for the first part of my entry, but EVERY time after, it just won't do what I tell it to do.
Here's the code I am trying to publish:
<div> <div style="padding-left: 60px;">[global]</div> <div style="padding-left: 60px;">#--authconfig--start-line--</div> <div style="padding-left: 60px;"></div> <div style="padding-left: 60px;"># Generated by authconfig on 2011/06/30 06:19:42</div> <div style="padding-left: 60px;"># DO NOT EDIT THIS SECTION (delimited by --start-line--/--end-line--)</div> <div style="padding-left: 60px;"># Any modification may be deleted or altered by authconfig in future</div> <div style="padding-left: 60px;"></div> <div style="padding-left: 60px;"> workgroup = WSDOT</div> <div style="padding-left: 60px;"> realm = WSDOT.LOC</div> <div style="padding-left: 60px;"> security = ads</div> <div style="padding-left: 60px;"> idmap uid = 10000-500000</div> <div style="padding-left: 60px;"> idmap gid = 10000-500000</div> <div style="padding-left: 60px;"> template homedir = /home/%D/%U</div> <div style="padding-left: 60px;"> template shell = /bin/bash</div> <div style="padding-left: 60px;"> winbind use default domain = true</div> <div style="padding-left: 60px;"> winbind offline logon = false</div> <div style="padding-left: 60px;"></div> <div style="padding-left: 60px;">#--authconfig--end-line--</div> </div>
and this is what it turns it into as soon as I publish it:
<p>[global]</p> <p>#--authconfig--start-line--</p> <p># Generated by authconfig on 2011/06/30 06:19:42</p> <p># DO NOT EDIT THIS SECTION (delimited by --start-line--/--end-line--)</p> <p># Any modification may be deleted or altered by authconfig in future</p> <p>workgroup = WSDOT</p> <p>realm = WSDOT.LOC</p> <p>security = ads</p> <p>idmap uid = 10000-500000</p> <p>idmap gid = 10000-500000</p> <p>template homedir = /home/%D/%U</p> <p>template shell = /bin/bash</p> <p>winbind use default domain = true</p> <p>winbind offline logon = false</p> <p>#--authconfig--end-line--</p> <p> </p>
Why would it do this? It worked the previous time I did this, in the same entry no less.
If I can't figure this out soon, then I will need to switch to another wiki that will actually do what I am telling it to do. I don't like fighting with a program that will not listen. I need this to work, and to do what it's told to do.
Thanks for your time.
Donald Harris
harrisdon@wsdotPLEASENOSPAM.wa.gov
Edit: It won't listen to indent or any other type of formating I try either, just completely ignores it all together, and adds/replaces the <p> tag no matter what I do :-| I also know that I could use the "Verbatim" formatting option, but that's not really what I want to do... I like the clean formatting I had without using the "Verbatim" formatting option.
--
DonaldHarris - 2011-08-24
Discussion and Answer
How about using
blockquote and
verbatim tags? This gives you an indented verbatim block of text. Add the
blockquote and
verbatim tags initially in raw edit. After that you can use the normal WYSIWYG editor to do changes.
Example:
[global]
#--authconfig--start-line--
# Generated by authconfig on 2011/06/30 06:19:42
# DO NOT EDIT THIS SECTION (delimited by --start-line--/--end-line--)
# Any modification may be deleted or altered by authconfig in future
workgroup = WSDOT
realm = WSDOT.LOC
security = ads
idmap uid = 10000-500000
idmap gid = 10000-500000
template homedir = /home/%D/%U
template shell = /bin/bash
winbind use default domain = true
winbind offline logon = false
#--authconfig--end-line--
--
PeterThoeny - 2011-08-24
Hello,
Sorry for my delayed response. I have been busy with other projects, and have just started going at this again.
Thanks for the suggestions, and I think I can live with that. After dealing with this and getting used to the way it looks with those tags, I think I can deal with it. I was just frustrated that it would work for the first paragraph, but not for any of the following ones. Oh well. Live and learn. I will use the verbatim tags and the blockqoute tages from now on.
I am curious on why it would format it once the proper way, and then not any other times. Any insight into that?
Thanks!
--
DonaldHarris - 2011-09-21
TWiki translates TML (TWiki Markup Language) to HTML on edit, and the reverse on save. This round-trip cannot be done 100% accurately. That is, some formatting you see in the WYSIWYG editor is lost on save.
You might want to look into
Extensions:syntax_highlighting
--
TWikiGuest - 2011-09-21
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.