Changeset 13696 in josm


Ignore:
Timestamp:
2018-05-01T21:26:32+02:00 (12 months ago)
Author:
stoecker
Message:

add a note about manifest reconstruction and the ugly 70 byte limit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/plugins/PluginListParser.java

    r12620 r13696  
    6868                if (line.startsWith("\t")) {
    6969                    line = line.substring(1);
     70                    /* NOTE: Although manifest specification says line should not be longer than 72 bytes it
     71                       supports more than 500 bytes and thus even the longest possible 72 character UTF-8, so
     72                       this code correctly splits the text at 70 characters, not bytes. */
    7073                    while (line.length() > 70) {
    7174                        manifest.append(line.substring(0, 70)).append('\n');
Note: See TracChangeset for help on using the changeset viewer.