René's URL Explorer Experiment


Title: Join hyphenated words across Javadoc line breaks; no blank lines before a leading block tag by abashev · Pull Request #116 · openjavaformat/open-java-format · GitHub

Open Graph Title: Join hyphenated words across Javadoc line breaks; no blank lines before a leading block tag by abashev · Pull Request #116 · openjavaformat/open-java-format

X Title: Join hyphenated words across Javadoc line breaks; no blank lines before a leading block tag by abashev · Pull Request #116 · openjavaformat/open-java-format

Description: Two commits, each a port with the upstream author kept, each done test-first. 1. google/google-java-format#1475 (Liam Miller-Cushon, still open upstream). With Javadoc formatting on, infinite- at a line end followed by precision came out as infinite- precision. The lexer now joins a literal ending in a word character plus - with a word literal on the next line, unless it is and/or (pre- and post-processing stays) or a paragraph break sits between them. Adapted to this fork's Token API; the /// markdown test is upstream-only. Tests: hyphenatedLineBreakJoined failed before the change; suspendedHyphenPreserved and hyphenBeforeParagraphBreakNotJoined guard what must not change. 2. Two empty lines at the top of a comment that starts with a block tag. Found while checking palantir#1476: /**\n *

{@code ... (and