Re: [Tiki-users] How to indent text

Jonny Bradley via TikiWiki-users <[email protected]>
Newsgroups gmane.comp.cms.tiki.user
Message-ID <[email protected]>
Hi Volker

Curious on https://doc.tiki.org/Wiki-Syntax#Indent it says that worked up to tiki 13...

The syntax still works, as

    ;:2nd example of indented text

Produces

    <dl><dt></dt><dd>2nd example of indented text</dd></dl>

aha, in bootstrap definition lists are only formatted like that if you add row and col classes to them

    https://getbootstrap.com/docs/4.6/content/typography/#description-list-alignment

So one fairly safe solution would be to add these grid classes to the <dl><dt><dd> elements, which would restore that indentation, but do we use a 3/9 split, or 2/10? It seems a bit arbitrary... and would change the look of pages using them for the past 10 releases :(

There doesn't seem to be a modern html/css way of doing this properly and list-style-type:none with a single item doesn't seem great semantically to me - in the old days we used to use <blockquote> but that went in html5...

Maybe use non-breaking spaces? This seems to work ok

    ~hs~~hs~~hs~~hs~Example of indented text

Maybe?

jonny




> On 16 May 2021, at 14:07, Volker Wysk <post-hhF2Jplw28UoZk/[email protected]> wrote:
> 
> Am Samstag, den 15.05.2021, 14:43 +0200 schrieb Volker Wysk:
>> Hi!
>> 
>> I'm moving forward with my MoinMoin-to-Tiki tool. I've finished the MoinMoin
>> parser and am starting to write the MoinMoin-to-Tiki converter. 
>> 
>> I've studied the Wiki Syntax page https://doc.tiki.org/Wiki-Syntax, and am
>> wondering how to accomplish indentation in Tiki. In MoinMoin, you can indent
>> any paragraph by prepending spaces at the beginning of the lines.
>> 
>> There are two methods documented: First, with "+" signs at the beginning.
>> This appears to only work for lists. 
>> 
>> The second method is documented here: 
>> https://doc.tiki.org/Wiki-Syntax#Indent. I find the description not clear,
>> and it doesn't work, too. It provides two examples, which don't even work.
>> 
>> So how is indentation accomplished in Tiki...?
> 
> I've taken a look at the HTML code which MoinMoin generates when a paragraph
> is indented:
> 
> <ul><li style="list-style-type:none">bla(...)</li></ul>
> 
> So it's a list with the style "list-style-type:none". 
> 
> Sure the same can be done with Tiki, isn't it?
> 
> Volker
> _______________________________________________
> TikiWiki-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/tikiwiki-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.