[valadoc] libvaladoc/html: Cells: Fix text alignment
- From: Florian Brosch <flobrosch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [valadoc] libvaladoc/html: Cells: Fix text alignment
- Date: Thu, 24 Feb 2011 01:32:52 +0000 (UTC)
commit d5643120eb77cfaf87b6c4a4165ed0a40874ddca
Author: Florian Brosch <flo brosch gmail com>
Date: Wed Feb 16 20:28:25 2011 +0100
libvaladoc/html: Cells: Fix text alignment
src/libvaladoc/html/htmlrenderer.vala | 15 +++++++++++++--
1 files changed, 13 insertions(+), 2 deletions(-)
---
diff --git a/src/libvaladoc/html/htmlrenderer.vala b/src/libvaladoc/html/htmlrenderer.vala
index 5f54fb4..fe5618e 100755
--- a/src/libvaladoc/html/htmlrenderer.vala
+++ b/src/libvaladoc/html/htmlrenderer.vala
@@ -399,9 +399,20 @@ public class Valadoc.Html.HtmlRenderer : ContentRenderer {
}
public override void visit_table_cell (TableCell element) {
+ string style = "";
+
+ if (element.horizontal_align != null) {
+ style += "text-align: "+element.horizontal_align.to_string ()+"; ";
+ }
+
+ if (element.vertical_align != null) {
+ style += "vertical-align: "+element.vertical_align.to_string ()+"; ";
+ }
+
writer.start_tag ("td", {"class", "main_table",
- "colspan", element.colspan.to_string (),
- "rowspan", element.rowspan.to_string ()});
+ "colspan", element.colspan.to_string (),
+ "rowspan", element.rowspan.to_string (),
+ "style", style});
element.accept_children (this);
writer.end_tag ("td");
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]