indent step not playing nicely with multiline string literals
- Vorherrschende Sprache
- Java
- Sterne
- 5.7k
- Forks
- 561
- Ø Merge
- 1 T. 14 Std.
- Gemergte PRs (30 T.)
- 43
Beschreibung
If you are submitting a **bug**, please include the following:
- [X] summary of problem
- [X] gradle or maven version
- [X] spotless version
- [X] operating system and version
- [ ] copy-paste your full Spotless configuration block(s), and a link to a public git repo that reproduces the problem if possible
- [ ] copy-paste the full content of any console errors emitted by `gradlew spotless[Apply/Check] --stacktrace`
# setup
Maven any 3.8.x
spotless 2.32.0
OS - Mac, Linux, windows
## What happened?
Reformats and destroys text blocks
source:
```
class TestClas {
@Test
public void serverFilecheck() {
assertThat(myFile())
.as("file [%s] any line contains [limitFieldSize=\"8192\"].", myFile())
.content(StandardCharsets.UTF_8)
.contains(
"""
com.diffplug.spotless
spotless-maven-plugin
2.32.0
true
2.28.0
true
4
true
2
pom.xml
false
check
validate
```
## What did you want to happen?
Maybe nudge the text block to the right, but the difference between the closing `"""` and the text MAY NOT BE ALTERED!
Beitragsleitfaden
Rechercherichtung
Beginne damit, das Problem mit dem Java-Quelltextblock und der gezeigten Spotless-Maven-Konfiguration zu reproduzieren, insbesondere mit den beiden Einrückungsschritten. Vergleiche die neu formatierte Ausgabe mit dem gewünschten Verhalten: Der Textblock darf nach rechts verschoben werden, aber der Unterschied zwischen seinen öffnenden und schließenden Begrenzern muss unverändert bleiben.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- java
- Bereich
- tooling
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Ruhig
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 48/100