mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-24 15:44:59 +08:00
Docx writer: Fix custom styles with spaces in the name.
Custom styles with spaces worked for divs but not for spans. This commit fixes the problem. Closes #3290.
This commit is contained in:
@@ -1134,7 +1134,7 @@ inlineToOpenXML' opts (Span (ident,classes,kvs) ils) = do
|
||||
modify $ \s ->
|
||||
s{stDynamicTextProps = Set.insert sty
|
||||
(stDynamicTextProps s)}
|
||||
return $ withTextProp (rCustomStyle sty)
|
||||
return $ withTextPropM (rStyleM sty)
|
||||
_ -> return id
|
||||
let dirmod = case lookup "dir" kvs of
|
||||
Just "rtl" -> local (\env -> env { envRTL = True })
|
||||
|
||||
Reference in New Issue
Block a user