<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - FILESAVE DOCX Mail merge field name with starting or ending space saved incorrectly"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=131527">131527</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>FILESAVE DOCX Mail merge field name with starting or ending space saved incorrectly
</td>
</tr>
<tr>
<th>Product</th>
<td>LibreOffice
</td>
</tr>
<tr>
<th>Version</th>
<td>6.3.0.4 release
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>UNCONFIRMED
</td>
</tr>
<tr>
<th>Keywords</th>
<td>filter:docx, implementationError
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>Writer
</td>
</tr>
<tr>
<th>Assignee</th>
<td>libreoffice-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>libreoffice@nisz.hu
</td>
</tr>
<tr>
<th>CC</th>
<td>nemeth@numbertext.org
</td>
</tr>
<tr>
<th>Blocks</th>
<td>102998
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="http://bugs.documentfoundation.org/attachment.cgi?id=158919" name="attach_158919" title="Example file from Writer">attachment 158919</a> <a href="http://bugs.documentfoundation.org/attachment.cgi?id=158919&action=edit" title="Example file from Writer">[details]</a></span>
Example file from Writer
If a mail merge field name contains a space at the start or end in the data
source, inserting in a Writer document results in an incorrect field name that
Word can not find in the same data source.
If the field name contains no starting or ending space, Word can find it in the
same data source. Upon saving it ignores the starting space and replaces the
ending one with an underscore.
Steps to reproduce:
1. Open attached example document in Writer and save it in DOCX format
2. Open the document in Word
3. Choose Mailings – Select Recipients – Use an existing list
4. Browse the attached data source XLSX
5. Click Preview Results button in the Mailings ribbon
Actual results:
A dialog pops up that says the Firstname and Lastname fields cannot be found in
the data source, asks to choose existing fields.
Expected results:
Data fields are found when Preview Results is selected.
LibreOffice details:
Version: 7.0.0.0.alpha0+ (x64)
Build ID: ec85ed21a960a198a01778cdb89a91fabcb5d0c0
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: GL; VCL: win;
Locale: en-US (hu_HU); UI-Language: en-US
Calc: CL</pre>
</div>
</p>
<div id="referenced">
<hr style="border: 1px dashed #969696">
<b>Referenced Bugs:</b>
<ul>
<li>
[<a class="bz_bug_link
bz_status_NEW "
title="NEW - [META] Mail merge bugs and enhancements"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=102998">Bug 102998</a>] [META] Mail merge bugs and enhancements
</li>
</ul>
</div>
<br>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>