Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ private boolean validateFullCoverageNoGapsOrOverlaps(
}
validateNoOverlapBetweenLocations(prevLocation, location, firstSourceOrigin);
}
return validateEndPositionIsSequenceLength(location, sequenceLength, firstSourceOrigin);
return validateEndPositionIsSequenceLength(location, sequenceLength, firstSourceOrigin);
}

private boolean validateStartPositionIsOne(Location location, Origin firstSourceOrigin) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
public class QualifierWriter extends FlatFileWriter {

private final Qualifier qualifier;
private static final int NOTE_MAX_LINE_LENGTH = 200;
private static final int NOTE_MAX_LINE_LENGTH = 80;

public QualifierWriter(Entry entry, Qualifier qualifier, WrapType wrapType, String header) {
super(entry, wrapType);
Expand All @@ -34,6 +34,7 @@ public QualifierWriter(Entry entry, Qualifier qualifier, WrapType wrapType, Stri
setForceLineBreak(true);
} else if (qualifier.getName().equals(Qualifier.NOTE_QUALIFIER_NAME)) {
setMaximumLineLength(NOTE_MAX_LINE_LENGTH);
setForceLineBreak(true);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's only make the change where we add the following to note qualifier:

setForceLineBreak(true);

}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,10 @@ public void testWrite_Wrap() throws IOException {
+ "FT a note this is a note this is a note this is a note this is\n"
+ "FT a note this is a note this is a note this is a note this is\n"
+ "FT a note this is a note \"\n"
+ "FT /note=\"thisisanotethisisanotethisisanotethisisanotethisisanotethisisanotethisisanotethisisanotethisisanotethisisanotethisisanotethisisanotethisisanotethisisanotethisisanotethisisa\n"
+ "FT notethisisanotethisisanote\"\n",
+ "FT /note=\"thisisanotethisisanotethisisanotethisisanotethisisan\n"
+ "FT otethisisanotethisisanotethisisanotethisisanotethisisanotet\n"
+ "FT hisisanotethisisanotethisisanotethisisanotethisisanotethisi\n"
+ "FT sanotethisisanotethisisanote\"\n",
writer.toString());
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,10 @@ public void testWrite_Wrap() throws IOException {
+ " this is a note this is a note this is a note this is a\n"
+ " note this is a note this is a note this is a note this is\n"
+ " a note this is a note this is a note \"\n"
+ " /note=\"thisisanotethisisanotethisisanotethisisanotethisisanotethisisanotethisisanotethisisanotethisisanotethisisanotethisisanotethisisanotethisisanotethisisanotethisisanotethisisa\n"
+ " notethisisanotethisisanote\"\n",
+ " /note=\"thisisanotethisisanotethisisanotethisisanotethisisa\n" +
" notethisisanotethisisanotethisisanotethisisanotethisisanot\n" +
" ethisisanotethisisanotethisisanotethisisanotethisisanoteth\n" +
" isisanotethisisanotethisisanote\"\n",
writer.toString());
}

Expand Down