aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc.hs
diff options
context:
space:
mode:
authorlaptop1\Andrew <andrewjpritchard@gmail.com>2018-02-23 23:15:20 +0800
committerJesse Rosenthal <jrosenthal@jhu.edu>2018-02-23 11:50:33 -0500
commit03d86969919e811f0803e1a394ea291fe1471380 (patch)
treec36dfec8d7ce554fe8d9484cb9ffb884604b625b /src/Text/Pandoc.hs
parent2eab8f465410db57a7df27631a83058f8f480d89 (diff)
downloadpandoc-03d86969919e811f0803e1a394ea291fe1471380.tar.gz
Docx writer: fix #3930
Fixes an issuue regarding image sizing if the same image is included more than once. Previously, a record was kept, indexed by image source, which would include the XML for that image. For every image element in the document, this record was checked, and if the image was the same as previous examples, the same XML would be included twice. The information in this XML incudes the image description, title text, and size on the page, thus all images from the same source would always be sized the same, and have the same description. This commit fixes this by generating unique XML every time, but keeping the image ID and path if it is the same image.
Diffstat (limited to 'src/Text/Pandoc.hs')
0 files changed, 0 insertions, 0 deletions