@@ 81,6 81,8 @@ appendFragments pla plb = paragraphLayout sls'
paragraphFragments :: ParagraphLayout d -> [Fragment d]
paragraphFragments pl = concat $ map spanFragments $ spanLayouts pl
--- | Return all shaped runs in the paragraph.
+-- | Return all non-empty shaped runs in the paragraph.
shapedRuns :: ParagraphLayout d -> [ShapedRun]
-shapedRuns pl = map shapedRun $ paragraphFragments pl
+shapedRuns pl = map shapedRun $ filter hasGlyphs $ paragraphFragments pl
+ where
+ hasGlyphs = not . null . fragmentGlyphs