summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJorge Arellano Cid <jcid@dillo.org>2008-12-19 15:56:51 -0300
committerJorge Arellano Cid <jcid@dillo.org>2008-12-19 15:56:51 -0300
commitbb050288d289693117c208db6233c2c25d426805 (patch)
tree0734af074816768105c2ae38fc0796b609a8044d
parentbe06aed92ce216415321a7388e1b504f1b629e22 (diff)
Added support for the Q element.
-rw-r--r--ChangeLog1
-rw-r--r--src/html.cc28
2 files changed, 28 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 07662718..3ec9d5d4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -18,6 +18,7 @@ dillo-2.1
- Fix: recover page focus when clicking-out of a widget.
- Fixed a segfault bug in the test/ directory.
- Set middle click to submit in a new TAB. (Helps to keep form data!)
+ - Added support for the Q element.
Patches: place (AKA corvid)
+- Switched SSL-enabled to configure.in (./configure --enable-ssl).
- Standardised the installation of dpid/dpidrc with auto* tools.
diff --git a/src/html.cc b/src/html.cc
index 2e486ba0..196d2571 100644
--- a/src/html.cc
+++ b/src/html.cc
@@ -2574,6 +2574,32 @@ static void Html_tag_open_blockquote(DilloHtml *html,
}
/*
+ * <Q>
+ */
+static void Html_tag_open_q(DilloHtml *html, const char *tag, int tagsize)
+{
+ /*
+ * Left Double Quotation Mark, which is wrong in many cases, but
+ * should at least be widely recognized.
+ */
+ const char *U201C = "\xe2\x80\x9c";
+
+ DW2TB(html->dw)->addText (U201C, S_TOP(html)->style);
+}
+
+/*
+ * </Q>
+ */
+static void Html_tag_close_q(DilloHtml *html, int TagIdx)
+{
+ /* Right Double Quotation Mark */
+ const char *U201D = "\xe2\x80\x9d";
+
+ DW2TB(html->dw)->addText (U201D, S_TOP(html)->style);
+ a_Html_pop_tag(html, TagIdx);
+}
+
+/*
* Handle the <UL> tag.
*/
static void Html_tag_open_ul(DilloHtml *html, const char *tag, int tagsize)
@@ -3211,7 +3237,7 @@ const TagInfo Tags[] = {
{"p", B8(010110),'O',1, Html_tag_open_p, Html_tag_close_par},
/* param 010001 'F' */
{"pre", B8(010110),'R',2, Html_tag_open_pre, Html_tag_close_pre},
- /* q 010101 */
+ {"q", B8(010101),'R',2, Html_tag_open_q, Html_tag_close_q},
{"s", B8(010101),'R',2, Html_tag_open_strike, Html_tag_close_default},
{"samp", B8(010101),'R',2, Html_tag_open_samp, Html_tag_close_default},
{"script", B8(111001),'R',2, Html_tag_open_script, Html_tag_close_script},