Skip to content

fix: IOutput.Write(...) overloads now have argument IFormattingInfo set - #502

Merged
axunonb merged 3 commits into
mainfrom
pr/output-write
Oct 13, 2025
Merged

fix: IOutput.Write(...) overloads now have argument IFormattingInfo set#502
axunonb merged 3 commits into
mainfrom
pr/output-write

Conversation

@axunonb

@axunonb axunonb commented Oct 11, 2025

Copy link
Copy Markdown
Member

RTFOutput from Demo gives example how useful IFormattingInfo as argument can be.
Resolves #501

@axunonb
axunonb requested a review from karljj1 October 11, 2025 15:04
@codecov

codecov Bot commented Oct 11, 2025

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97%. Comparing base (af90b2e) to head (4940f51).

Additional details and impacted files
@@         Coverage Diff         @@
##           main   #502   +/-   ##
===================================
- Coverage    97%    97%   -0%     
===================================
  Files        99     99           
  Lines      3426   3424    -2     
===================================
- Hits       3321   3319    -2     
  Misses      105    105           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

karljj1
karljj1 previously approved these changes Oct 13, 2025
Comment thread src/SmartFormat/Core/Output/IOutput.cs Outdated
/// </summary>
/// <param name="text"></param>
/// <param name="formattingInfo"></param>
// vNext: Remove formattingInfo argument? Or make it non-optional and non-nullable?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

What does vNext mean?

@axunonb axunonb Oct 13, 2025

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Next major version (v4) - what do you think?

using System.IO;
using SmartFormat.Core.Extensions;
using SmartFormat.ZString;
using static System.Net.Mime.MediaTypeNames;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Is this needed?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Thanks! No, not at all.

@axunonb
axunonb merged commit cecf69a into main Oct 13, 2025
3 of 5 checks passed
@axunonb
axunonb deleted the pr/output-write branch October 13, 2025 21:58
@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

IOutput.Write(...) overloads may have argument IFormattingInfo set to null

2 participants