@@ -1010,7 +1010,11 @@ inlineToOpenXML :: WriterOptions -> Inline -> WS [Element]
10101010inlineToOpenXML _ (Str str) = formattedString str
10111011inlineToOpenXML opts Space = inlineToOpenXML opts (Str " ")
10121012inlineToOpenXML opts SoftBreak = inlineToOpenXML opts (Str " ")
1013−inlineToOpenXML opts (Span (_,classes,kvs) ils)
1013+inlineToOpenXML opts (Span (ident,classes,kvs) ils)
1014+ | Just sty <- lookup dynamicStyleKey kvs = do
1015+ let kvs' = filter ((dynamicStyleKey, sty)/=) kvs
1016+ withTextProp (rCustomStyle sty) $
1017+ inlineToOpenXML opts (Span (ident,classes,kvs') ils)
10141018 | "insertion" `elem` classes = do
10151019 defaultAuthor <- gets stChangesAuthor
10161020 defaultDate <- gets stChangesDate