]> git.lyx.org Git - lyx.git/commit
Fix mangling names in temp directory (amends eef0c8e8).
authorPavel Sanda <sanda@lyx.org>
Wed, 8 Nov 2023 20:42:54 +0000 (21:42 +0100)
committerPavel Sanda <sanda@lyx.org>
Wed, 8 Nov 2023 20:42:54 +0000 (21:42 +0100)
commit6d19388ab8ca66720648110446b50b6fc14ed4f0
treee7f1cb3cbdbf98fa3d37e4d647bc0efe569ac8a7
parentc79af8e138bc33609cdf3192116ca5206314d6f2
Fix mangling names in temp directory (amends eef0c8e8).

Separate mangled-name tables for xhtml and latex exports.

LaTeX route should stay as it were (counter+mangled path within filenames in
temp directory)

xHTML route uses hash of path + filename only. We won't use counters because
(unlike in LaTeX export) they stay visible in final export directory and
generally change across LyX sessions.
Hash is short with collision handling because path-length limits of Windows.

cf https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg220582.html
src/insets/InsetGraphics.cpp
src/support/FileName.cpp
src/support/FileName.h
src/support/filetools.cpp
src/support/filetools.h