mirror of
https://github.com/Set-OutlookSignatures/Set-OutlookSignatures.git
synced 2026-04-26 10:45:52 +03:00
[GH-ISSUE #13] .txt signatures contain additional blank lines #5
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Set-OutlookSignatures-Set-OutlookSignatures#5
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @GruberMarkus on GitHub (Sep 8, 2021).
Original GitHub issue: https://github.com/Set-OutlookSignatures/Set-OutlookSignatures/issues/13
When using .docx template files, the resulting text-only signature (.txt file) has additional blank lines at the end.
These blank lines do not appear when using .htm template files.
The problem is reproducable with the latest version (v2.1.2) of the script, the attached sample templates in .docx format can be used to demonstrate the problem.
@GruberMarkus commented on GitHub (Sep 8, 2021):
Problem confirmed.
Additional lines are only added when using templates in .docx format, because the script uses .docx to create the other formats - and Word adds additional lines at the end of the file when converting from .docx to .txt.
The Word behavior can easily be reproduced manually:
I could not find an official statement or documentation from Microsoft, but the information from https://eileenslounge.com/viewtopic.php?t=16703 seems valid.
When creating a new signature directly in Outlook, the conversion to .txt happen automatically and without adding additional lines. This is because Outlook does not convert from .docx to .txt, but from .htm to .txt.
The next version of the script (probably v2.2.0) will have a simple solution for this problem by adopting the Outlook behavior: Conversion to .txt will no longer be based on the original .docx file, but on the .htm file createad from the .docx template.
@GruberMarkus commented on GitHub (Sep 8, 2021):
Fixed in release v2.2.0.