Skip to content

fix: fix trailing space - #673

Merged
CarterLi merged 1 commit into
fastfetch-cli:devfrom
apocelipes:fix-trailing-space
Dec 23, 2023
Merged

fix: fix trailing space#673
CarterLi merged 1 commit into
fastfetch-cli:devfrom
apocelipes:fix-trailing-space

Conversation

@apocelipes

@apocelipes apocelipes commented Dec 22, 2023

Copy link
Copy Markdown
Contributor

I have checked all calls of ffAppendFDBuffer and fix most of the trailing space problems.

Some data just passed to the parser(e.g. strtoul), trailing space in these cases are not problems, stay as is.

The contents of some sysfs files have a fixed format(like /sys/class/net/*/operstate), so instead of removing trailing spaces and newlines, the contents being compared are updated.

Code under src/logo I didn't change because there is no trailing space problem here, but I'm not 100% sure. This shoule be checked in reviewing.

@CarterLi
CarterLi merged commit 113b1b8 into fastfetch-cli:dev Dec 23, 2023
@apocelipes
apocelipes deleted the fix-trailing-space branch December 25, 2023 00:38
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.

2 participants