Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Escape percent symbol? #470

Closed
LucaBL opened this issue Aug 2, 2022 · 2 comments
Closed

Escape percent symbol? #470

LucaBL opened this issue Aug 2, 2022 · 2 comments

Comments

@LucaBL
Copy link

LucaBL commented Aug 2, 2022

Hello,
I just wanted to print a simple line like "10% space", no parameters. Just an example.

If I use Log like this there are no problems:
Log.e("test", "10% space")

But if I use Timber it says I'm missing a parameter:
Timber.e("10% space")

I tried escaping the symbol in several ways but with no luck:

"10\\% space" -> prints "10\% space"
"10%% space" -> prints "10%% space"

Am i missing something? Thanks

@jboxx
Copy link

jboxx commented Feb 17, 2023

need to escape with double percent as stated in this discussion

@LucaBL
Copy link
Author

LucaBL commented Feb 17, 2023

Turns out the project I was on at the time had a very old version of Timber from 2018.
This problem was solved with release 5.0.x .

@LucaBL LucaBL closed this as completed Feb 17, 2023
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

No branches or pull requests

2 participants