https://bugs.documentfoundation.org/show_bug.cgi?id=168269

            Bug ID: 168269
           Summary: Render fields sized to match actual value so wrapping
                    is visible
           Product: LibreOffice
           Version: 26.2.0.0 alpha0+ master
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: medium
         Component: Writer
          Assignee: [email protected]
          Reporter: [email protected]

Description:
This is an enhancement request for Writer.

Currently a "field" is displayed in a grey box containing the field name, or
name+value in the case of a user variable.  The surrounding text is formatted
assuming the field will occupy exactly that amount of space, which is almost
always wrong.   The final formatting will be different because the size of the
field's value is wider or narrower than the field-reference display.  The
consequences can only be discovered by printing (or using print-preview).  

This is LTA for the user because the entire look of the document may be thrown
off.  For example, the user may have inserted an explicit page break somewhere
that, after a line-wrap caused by field values, ends up at at or near the top
of a page, so an undesired nearly-blank page could ensue.  Another example are
database field references, where the field names may be larger than the values,
causing shrinkage when rendered.  Etcetera.  [LTA = "Less Than Awesome"]

A solution might be to make the field display be the *exactly the size as the
value* (i.e. when only the value is substituted).  The text of the
field-reference would be shrunk if necessary to fit in that space. 

That way, formatting during normal editing would always reflect what will
appear on the printed page.


Steps to Reproduce:
1. Open the attached "FieldFormatting.odt" demo
2. Notice that the first line is wrapped and the second is not
3. File->Print Preview

Actual Results:
The final results do not wrap the first line but do wrap the second line.

The reference to the user variable "OrgName" displays wider than the final
content size while editing , and the field "Date" displays narrower.actual
date.

Expected Results:
WYSIWYG


Reproducible: Always


User Profile Reset: No

Additional Info:
In summary: Resize field-references to be the size of the final value,
shrinking the field-reference text if necessary to fit in that space.

(Note that the user can easily zoom with control-scrollwheel to read tiny
lettering)

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to