This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Proposed FAQ in DocBook


On 8/29/05, Igor Pechtchanski  wrote:
> > Well, I didn't figure out how to do it in DocBook, but it was no
> > problem with sed:
> >
> > sed -i 's;</a><a name="id[0-9]*"></a>;</a>;g' faq/faq*.html
> 
> BTW, I don't think I saw the "id\d+" form of reference ever used in the
> FAQ, but just in case, to fully preserve the prior functionality (i.e.,
> allow references to those anchor forms), you could use something like
> 
> sed -i 's;<a name="\(.*\)"></a><a name="\(id[0-9]*\)"></a>;<a name="\1" id="\2"></a>;g' faq/faq*.html

Yeah, by default DocBook automatically generates the id* anchors, but it's only 
supposed to when you don't define id yourself, so I think this is a
bug with the
qandaentry processing code. I didn't need them so I discarded them on purpose.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]