Hi Jeremy 1. A dt <http://www.w3.org/TR/html5/grouping-content.html#the-dt-element> element's end tag <http://www.w3.org/TR/html5/syntax.html#syntax-end-tag> may be omitted if the dt <http://www.w3.org/TR/html5/grouping-content.html#the-dt-element> element is immediately followed by another dt <http://www.w3.org/TR/html5/grouping-content.html#the-dt-element> element or a dd <http://www.w3.org/TR/html5/grouping-content.html#the-dd-element> element. 2. A dd <http://www.w3.org/TR/html5/grouping-content.html#the-dd-element> element's end tag <http://www.w3.org/TR/html5/syntax.html#syntax-end-tag> may be omitted if the dd <http://www.w3.org/TR/html5/grouping-content.html#the-dd-element> element is immediately followed by another dd <http://www.w3.org/TR/html5/grouping-content.html#the-dd-element> element or a dt <http://www.w3.org/TR/html5/grouping-content.html#the-dt-element> element, or if there is no more content in the parent element.
This should be valid syntax which might lead to simplified wikification scheme without the need for the trailing tags that result in spurious blank lines: <dl> <dt> Authors <dd> John <dd> Luke <dt> Editor <dd> Frank </dl> Unfortunately this doesn't render correctly in TW and I am unable, therefore, to experiment further. regards On Wednesday, July 9, 2014 12:39:41 PM UTC+2, Jeremy Ruston wrote: > > Hi Matabele > > >> It appears that <dd> elements may be used on their own (at least in the >> text field of TW5.) It is, therefore, unnecessary to add the <dl> tags >> around <dd> elements. >> > > Although <dd> elements work on their own, it is not valid HTML5 as I > understand it: > > http://www.w3.org/TR/html5/grouping-content.html#the-dd-element > > Best wishes > > Jeremy. > > > >> >> The <dl> tags are, however, required for <dt> elements. >> >> Is there no way of parsing the wikitext in such a way that <dl> tags are >> added only when a <dt> tag (;) is used? >> >> Thus: >> >> Some text >> :some text >> ::some text >> >> -- would give >> >> Some text >> <dd>some text</dd> >> <dd><dd>some text</dd></dd> >> >> And: >> >> ;Term >> :some text >> ::some text >> >> -- would give >> >> <dl><dt>Term</dt> >> <dd>some text</dd> >> <dd><dd>some text</dd></dd></dl> >> >> regards >> >> On Wednesday, July 9, 2014 11:52:12 AM UTC+2, Jeremy Ruston wrote: >> >>> Hi Matabele >>> >>> In that case, there appears to be a bug -- because: >>>> >>>> <dd>some text</dd> >>>> <dd><dd>some text</dd></dd> >>>> <dd><dd><dd>some text</dd></dd></dd> >>>> >>>> >>> The HTML generated by TW5 actually looks like this: >>> >>> <dl><dd>some text<dl><dd>some text<dl><dd>some >>> text</dd></dl></dd></dl></dd></dl> >>> >>> The blank lines are coming from the default margin on the <dl> element. >>> >>> Best wishes >>> >>> Jeremy. >>> >>> >>> >>>> -- doesn't generate spurious blank lines, whereas: >>>> >>>> :some text >>>> ::some text >>>> :::some text >>>> >>>> -- does. >>>> >>>> regards >>>> >>>> On Wednesday, July 9, 2014 9:59:10 AM UTC+2, Jeremy Ruston wrote: >>>> >>>>> Hi Matabele >>>>> >>>>> >>>>> A further thought with respect the perennial question -- would it be >>>>>> possible to modify the colon markup (for definitions) to avoid the >>>>>> spurious line feed? >>>>>> >>>>> >>>>> TiddlyWiki just spits out plain HTML <DL>/<DD> elements. The >>>>> additional linespacing comes from the default CSS built into browsers; >>>>> TiddlyWiki doesn't have any CSS affecting definition lists. >>>>> >>>>> I'd be happy to refine the CSS but in cases like this I'd prefer to >>>>> follow the lead of an existing CSS framework. >>>>> >>>>> Best wishes >>>>> >>>>> Jeremy >>>>> >>>>> >>>>> >>>>> >>>>>> >>>>>> If I write: >>>>>> >>>>>> :indent >>>>>> ::double indent >>>>>> :::triple indent >>>>>> >>>>>> I get: >>>>>> >>>>>> indent >>>>>> >>>>>> double indent >>>>>> >>>>>> triple indent >>>>>> >>>>>> -- but it would be nice if this gave what I expected. >>>>>> >>>>>> This would also enable colons to be interspersed anywhere within text >>>>>> without the spurious blank lines -- I could then write: >>>>>> >>>>>> Some text >>>>>> :Line1 >>>>>> :Line2 >>>>>> >>>>>> Some more text >>>>>> :Line3 >>>>>> :Line4 >>>>>> >>>>>> and get this: >>>>>> >>>>>> Some text >>>>>> Line1 >>>>>> Line2 >>>>>> >>>>>> Some more text >>>>>> Line3 >>>>>> Line4 >>>>>> >>>>>> This, I believe would take care of most use cases. >>>>>> >>>>>> regards >>>>>> >>>>>> On Wednesday, April 30, 2014 3:25:54 PM UTC+2, Thomas Guldstrand >>>>>> Larsen wrote: >>>>>> >>>>>>> Hi, >>>>>>> >>>>>>> Warning: newbie here... >>>>>>> >>>>>>> When editing a tiddler, I write e.g >>>>>>> >>>>>>> This is line one. >>>>>>> This in line two. >>>>>>> >>>>>>> When saving the tiddler it becomes >>>>>>> >>>>>>> This is line one. This is line two. >>>>>>> >>>>>>> So I try: >>>>>>> >>>>>>> This is line one. >>>>>>> >>>>>>> This in line two. >>>>>>> >>>>>>> and it becomes: >>>>>>> >>>>>>> This is line one. >>>>>>> >>>>>>> This in line two. >>>>>>> >>>>>>> How to prevent that? I just want the formatting to be as I wrote it >>>>>>> originally...I don't want This is line two to be in a new paragraph. >>>>>>> >>>>>>> Is there any WYSIWYG editors for TW5? >>>>>>> >>>>>>> Thanks >>>>>>> >>>>>>> >>>>>>> -- >>>>>> You received this message because you are subscribed to the Google >>>>>> Groups "TiddlyWiki" group. >>>>>> To unsubscribe from this group and stop receiving emails from it, >>>>>> send an email to [email protected]. >>>>>> To post to this group, send email to [email protected]. >>>>>> >>>>>> Visit this group at http://groups.google.com/group/tiddlywiki. >>>>>> For more options, visit https://groups.google.com/d/optout. >>>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> Jeremy Ruston >>>>> mailto:[email protected] >>>>> >>>> >>> >>> >>> -- >>> Jeremy Ruston >>> mailto:[email protected] >>> >> > > > -- > Jeremy Ruston > mailto:[email protected] <javascript:> > -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/d/optout.

