SID-00853: Customize indentation of bullet lists
| Status: |
Answered |
TWiki version: |
|
Perl version: |
|
| Category: |
CategoryRendering |
Server OS: |
|
Last update: |
15 years ago |
I've multiple numbered and bulleted lists and I can't get the formatting to work. For example:
- line 1
- line 2
- bullet for line 2 I would like this line indented the same as 'line 2'
- line 3
- bullet for line 3
- yet another bullet I would like this line to line up with the line 3 bullet I would like this to line up with line 3
So the TWiki I've used is:
1 line 1
1 line 2
* bullet for line 2
I would like this line indented the same as 'line 2'
1 line 3
* bullet for line 3
* yet another bullet
I would like this line to line up with the line 3 bullet
I would like this to line up with line 3
--
TaitCyrus - 2010-05-26
Discussion and Answer
If I understand correctly, in other words you'd like to show all bullets rendered with the same indent, regardless of level. This is done with the bullets in the sidebar of the
PatternSkin. You can customize the style sheet, in your case you can overload the margins of
ul,
ol and
li. Please note that this will change the bullets for all pages unless you set a topic specific USERSTYLEURL preferences setting.
See details at
PatternSkinCustomization,
PatternSkinCssCookbook.
--
PeterThoeny - 2010-05-27
Actually what I was hoping was that TWiki would auto generate something like:
<ol>
<li>line 1</li>
<li>line 2
<ul>
<li>bullet for line 2</li>
</ul>
I would like this line indented the same as 'line 2'
</li>
<li>line 3
<ul>
<li>bullet for line 3
<ul>
<li>yet another bullet</li>
</ul>
I would like this line to line up with the line 3 bullet
</li>
</ul>
</li>
I would like this to line up with line 3
</li>
</ol>
which generates:
- line 1
- line 2
I would like this line indented the same as 'line 2'
- line 3
- bullet for line 3
I would like this line to line up with the line 3 bullet
I would like this to line up with line 3
So basically TWiki would see an indented line and having detected that it was in the middle of displaying lists it would align the indented line at the same level as as the previously seen list item with the identical indentation.
--
TaitCyrus - 2010-06-11
That is currently not supported in the
TML. Not sure what a good syntax is to get this functionality. May be better to implement as a plugin?
--
PeterThoeny - 2010-06-12
Closing this question after more than 30 days of inactivity. Feel free to reopen if needed. Consider engaging one of the
TWiki consultants if you need timely help. We invite you to
get involved with the community, it is more likely you get community support if you support the open source project!
--
PeterThoeny - 2010-08-02
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.