diff options
| author | Albert Krewinkel <[email protected]> | 2022-08-21 11:30:21 +0200 |
|---|---|---|
| committer | Albert Krewinkel <[email protected]> | 2022-08-22 15:32:39 +0200 |
| commit | 16d134218b6ee545363573a6671297523dc6a6f7 (patch) | |
| tree | 92d6562c63625f48ebc9b692bdd673b3c3299448 /src | |
| parent | 08f1f4551cea2b1af660b35ce3ddf39dd4ed416c (diff) | |
HTML writer: revert to using `width` property for column widths
The default `flex` and `overflow-x` properties of a column are set to
`auto`. In combination, these changes allow to get good results when
using columns with or without explicit widths.
Diffstat (limited to 'src')
| -rw-r--r-- | src/Text/Pandoc/Writers/HTML.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Writers/HTML.hs b/src/Text/Pandoc/Writers/HTML.hs index 24f3e2da4..cdbf11e1e 100644 --- a/src/Text/Pandoc/Writers/HTML.hs +++ b/src/Text/Pandoc/Writers/HTML.hs @@ -876,7 +876,7 @@ blockToHtmlInner opts (Div attr@(ident, classes, kvs') bs) = do let isCslBibEntry = "csl-entry" `elem` classes let kvs = [(k,v) | (k,v) <- kvs' , k /= "width" || "column" `notElem` classes] ++ - [("style", "flex:" <> w <> ";") | "column" `elem` classes + [("style", "width:" <> w <> ";") | "column" `elem` classes , ("width", w) <- kvs'] ++ [("role", "doc-bibliography") | isCslBibBody && html5] ++ [("role", "doc-biblioentry") | isCslBibEntry && html5] |
