Mercurial > repos > snowblizz-super-API-ideas
comparison api/Exporters/WarFoundryHtmlExporter.cs @ 389:121d9d1ba53c default-army-name
Re #314: Bugfix of HTML exporter that Frostlee found
author | snowblizz |
---|---|
date | Sun, 21 Nov 2010 21:53:16 +0000 |
parents | 900adf96a915 |
children |
comparison
equal
deleted
inserted
replaced
388:ac088cdc54ff | 389:121d9d1ba53c |
---|---|
55 XmlElement metaCharset = doc.CreateElement("meta"); | 55 XmlElement metaCharset = doc.CreateElement("meta"); |
56 metaCharset.SetAttribute("http-equiv", "Content-Type"); | 56 metaCharset.SetAttribute("http-equiv", "Content-Type"); |
57 metaCharset.SetAttribute("content", "text/html;charset=UTF-8"); | 57 metaCharset.SetAttribute("content", "text/html;charset=UTF-8"); |
58 head.AppendChild(metaCharset); | 58 head.AppendChild(metaCharset); |
59 XmlElement style = doc.CreateElement("style"); | 59 XmlElement style = doc.CreateElement("style"); |
60 style.InnerText = "able, th, td { border: 1px solid #000; border-spacing: 0; border-collapse: collapse; margin: 0 }\n" | 60 style.InnerText = "table, th, td { border: 1px solid #000; border-spacing: 0; border-collapse: collapse; margin: 0 }\n" |
61 +"table table { width: 100%; border-width: 0; margin: -2px }\n" | 61 +"table table { width: 100%; border-width: 0; margin: -2px }\n" |
62 +"table table td { border-width:0 1px }"; | 62 +"table table td { border-width:0 1px }"; |
63 head.AppendChild(style); | 63 head.AppendChild(style); |
64 XmlElement body = doc.CreateElement("body"); | 64 XmlElement body = doc.CreateElement("body"); |
65 html.AppendChild(body); | 65 html.AppendChild(body); |