Export issue of URL when the text begins with a date‏
commit24e664df07a94ece45c6389aa49739426e71ee65
authorDavid Maus <dmaus@ictsoc.de>
Sun, 30 Jan 2011 22:20:28 +0000 (30 22:20 +0000)
committerBastien Guerry <bzg@altern.org>
Mon, 31 Jan 2011 18:28:30 +0000 (31 19:28 +0100)
tree361cc2be099c8f0b798df673107934f289c376fb
parent7e608051ac74386db85984864ffeab1325d2edb8
Export issue of URL when the text begins with a date‏

At Mon, 17 Jan 2011 18:55:54 +0100,
Bastien wrote:
>
> David Maus <dmaus@ictsoc.de> writes:
>
> >> It seems that such a non-regression test base and script do not
> >> exist. However that would be good to have in order to check that any
> >> correction does not break anything.
> >
> > That's exactly what the testing framework[1] could and should do.
> > I've just not figured out how to best write tests for entire export
> > operations.  Thinking of it: We could create an input file dedicated
> > to test link exporting, put in different kinds of links, export and
> > then use regexps to check if the links have been exported fine.
>
> I've just added testing/links.org to the testing framework.
>
> Vincent, feel free to suggest any addition to testing/ so that we can
> enrich our test-base with various examples!  Being able to reproduce
> errors on those files will help people feel confident the error does
> not come from their configuration.

Attached patch factors out the link handling part of
`org-export-as-html' in a separat function which takes the processed
line and the exporting options as arguments and returns the possibly
modified line.  Having the link handling in a separate function makes
it way easier to test this specific behaviour of export.

Best,
  -- David
lisp/org-html.el