Ignore:
Timestamp:
2024-11-25T23:08:52+01:00 (2 weeks ago)
Author:
taylor.smock
Message:

See #24014: Add multiline and normalize attributes to preset xsd

normalize="false" will prevent all whitespace normalization while
normalize="true" + multiline="true" will strip start and end whitespace and
inner whitespace that is not newlines.

The primary reason for this change is osmwiki:Key:inscription which can have
newlines in order to match the inscription.

This does not modify UI elements to support multiline editing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/resources/data/tagging-preset.xsd

    r18966 r19261  
    649649            </annotation>
    650650        </attribute>
     651        <attribute name="multiline" type="boolean">
     652            <annotation>
     653                <documentation>
     654                    The text is expected to be multiline, and newlines must not be normalized (default is false)
     655                </documentation>
     656            </annotation>
     657        </attribute>
     658        <attribute name="normalize" type="boolean">
     659            <annotation>
     660                <documentation>
     661                    This performs normalization of the value by stripping extraneous spaces and consolidating whitespace (default is true for JOSM)
     662                </documentation>
     663            </annotation>
     664        </attribute>
    651665    </attributeGroup>
    652666
Note: See TracChangeset for help on using the changeset viewer.