]> git.ipfire.org Git - thirdparty/gettext.git/commit
libtextstyle: html-ostream: Add hyperlink support.
authorBruno Haible <bruno@clisp.org>
Wed, 14 Aug 2019 18:52:25 +0000 (20:52 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 14 Aug 2019 18:52:25 +0000 (20:52 +0200)
commit4a553fd8d37fe045d3be1d1995245cd1e389f32f
tree665db2ae8f0ac85c15e1a70d75c8e2930ad7cc1f
parent22dea032cda5f82ada473f4cc35f367cea208315
libtextstyle: html-ostream: Add hyperlink support.

* libtextstyle/gnulib-local/lib/html-ostream.oo.h (struct html_ostream): Add
methods get_hyperlink_ref, set_hyperlink_ref.
* libtextstyle/gnulib-local/lib/html-ostream.oo.c (struct html_ostream): Add
field hyperlink_ref;
(write_attribute_value): New function.
(html_ostream::free): Emit an anchor end if needed.
(html_ostream::get_hyperlink_ref, html_ostream::set_hyperlink_ref): New
functions.
(html_ostream_create): Initialize the hyperlink_ref field.
* libtextstyle/lib/textstyle.h (html_ostream_get_hyperlink_ref,
html_ostream_set_hyperlink_ref): New declarations.
libtextstyle/gnulib-local/lib/html-ostream.oo.c
libtextstyle/gnulib-local/lib/html-ostream.oo.h
libtextstyle/lib/textstyle.h