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 tiddlywiki+...@googlegroups.com. >>>>> To post to this group, send email to tiddl...@googlegroups.com. >>>>> >>>>> Visit this group at http://groups.google.com/group/tiddlywiki. >>>>> For more options, visit https://groups.google.com/d/optout. >>>>> >>>> >>>> >>>> >>>> -- >>>> Jeremy Ruston >>>> mailto:jeremy...@gmail.com >>>> >>> >> >> >> -- >> Jeremy Ruston >> mailto:jeremy...@gmail.com >> > -- Jeremy Ruston mailto:jeremy.rus...@gmail.com -- 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/d/optout.