Skip to content

Preserve whitespace in CSF - #2479

Merged
DeathFishAtEase merged 3 commits into
Phobos-developers:developfrom
DeathFishAtEase:CSF_space
Oct 23, 2026
Merged

DeathFishAtEase merged 3 commits into
Phobos-developers:developfrom
DeathFishAtEase:CSF_space

Conversation

@DeathFishAtEase

@DeathFishAtEase DeathFishAtEase commented Oct 21, 2026 •

Copy link
Copy Markdown
Collaborator

What kind of change is this?

  • New feature, vanilla bugfix or enhancement of a released feature - changelog, docs and credits entries are needed.
  • Improvement to a new (unreleased) feature - docs and credits entries are needed; no changelog entry (Skip Changelog).
  • Bugfix to a new (unreleased) feature - credits entry is needed; no changelog or docs entries (Skip Changelog, Skip Docs).
  • Bugfix to an old (released) feature - changelog and credits entries are needed; no docs entry (Skip Docs).
  • Completely minor change (e.g. a typo fix) - no entries are needed (Skip Changelog, Skip Docs, Skip Credits).

Description

  • In vanilla, the CSF parser normalizes every label value: runs of consecutive spaces are collapsed into a single space, leading/trailing spaces are stripped and the spaces next to line breaks are removed. This makes any layout that relies on multiple spaces, such as indenting the lines of a briefing, impossible. Enabling this flag skips the normalization entirely and keeps the value exactly as written in the CSF.

In RA2MD.INI:

[Phobos]
PreserveCSFWhitespace=false  ; boolean
SPACE! smile

@DeathFishAtEase DeathFishAtEase self-assigned this Oct 21, 2026
@DeathFishAtEase DeathFishAtEase added ❓New feature Tested ⚙️T1 T1 maintainer review is sufficient labels Oct 21, 2026
@github-actions

github-actions Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

Nightly build for this pull request:

This comment is automatic and is meant to allow guests to get latest nightly builds for this pull request without registering. It is updated on every successful build.

@phoboscn-bot

Copy link
Copy Markdown

To Chinese users:
This pull request has been mentioned on Phobos CN. There might be relevant details there:

致中文用户:
此拉取请求已在 Phobos CN 上被提及。那里可能有相关详细信息:

https://www.phoboscn.top/t/topic/842/1

@DeathFishAtEase DeathFishAtEase added the Will be merged in 24h This PR will be merged in 24 hours if no one has further instructions. label Oct 22, 2026
@DeathFishAtEase
DeathFishAtEase merged commit 9d0b36a into Phobos-developers:develop Oct 23, 2026
5 of 7 checks passed
@DeathFishAtEase
DeathFishAtEase deleted the CSF_space branch October 23, 2026 03:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

❓New feature ⚙️T1 T1 maintainer review is sufficient Tested Will be merged in 24h This PR will be merged in 24 hours if no one has further instructions.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants