[PR #322] [MERGED] Strip inline linebreaks from LineFormatter entries. #1078

Closed
opened 2026-03-04 03:04:46 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Seldaek/monolog/pull/322
Author: @gunnarlium
Created: 2/14/2014
Status: Merged
Merged: 2/18/2014
Merged by: @Seldaek

Base: masterHead: strip-inline-linebreaks


📝 Commits (1)

  • 2aa0926 Strip inline line breaks from LineFormatter entries.

📊 Changes

2 files changed (+45 additions, -3 deletions)

View changed files

📝 src/Monolog/Formatter/LineFormatter.php (+17 -3)
📝 tests/Monolog/Formatter/LineFormatterTest.php (+28 -0)

📄 Description

This PR ensures that there will never be inline line breaks when using the LineFormatter. The allow the old behavior to be reenabled, a constructor flag has been added.

Fix #321.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Seldaek/monolog/pull/322 **Author:** [@gunnarlium](https://github.com/gunnarlium) **Created:** 2/14/2014 **Status:** ✅ Merged **Merged:** 2/18/2014 **Merged by:** [@Seldaek](https://github.com/Seldaek) **Base:** `master` ← **Head:** `strip-inline-linebreaks` --- ### 📝 Commits (1) - [`2aa0926`](https://github.com/Seldaek/monolog/commit/2aa09265fc1378072a0befec1e2891bc51369f1d) Strip inline line breaks from LineFormatter entries. ### 📊 Changes **2 files changed** (+45 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `src/Monolog/Formatter/LineFormatter.php` (+17 -3) 📝 `tests/Monolog/Formatter/LineFormatterTest.php` (+28 -0) </details> ### 📄 Description This PR ensures that there will never be inline line breaks when using the `LineFormatter`. The allow the old behavior to be reenabled, a constructor flag has been added. Fix #321. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-04 03:04:46 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/monolog#1078
No description provided.