tech@mandoc.bsd.lv
 help / color / mirror / Atom feed
* `It'-less lists complete.
@ 2010-05-31 20:19 Kristaps Dzonsons
  0 siblings, 0 replies; only message in thread
From: Kristaps Dzonsons @ 2010-05-31 20:19 UTC (permalink / raw)
  To: tech

Hi,

Another status update.  mandoc is now fully emulating groff in terms of 
accepting lists that don't have the proper `It' invocation.  Consider

.Bl -column asdfasdfasdf asdfasdfasdf
.Fl foo Ta bar
.Ar foo Ta bar
baz<TAB>xyzzy
.It hello<TAB>there
.It this should Ta
not break
.It another Ta
.Fl try
.El

where <TAB> is the tab character.  This now correctly renders as

      -foo            bar
      foo             bar
      baz             xyzzy
      hello           there
      this should     not break
      another         -try

Of course -Thtml works also.

Algorithm: until a line `It' is encountered after a `Bl -column', 
mandoc/groff will assume `It' for each new line without one.  Once an 
`It' is encountered, subsequent lines are processed within the scope of 
the prior `It'.  Tricky.  Fortunately, this didn't require much effort 
beyond a new flag and some ugliness in mdoc.c.

Please test.  I want to roll this into another release, but will wait 
until at least somebody else has looked over the code and ok'd or at 
least tested for fallout downstream.

Thanks,

Kristaps
--
 To unsubscribe send an email to tech+unsubscribe@mdocml.bsd.lv

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-05-31 20:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-31 20:19 `It'-less lists complete Kristaps Dzonsons

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).