Caption with trailing whitespace leads to failed upload (titleblacklist-custom-space)
See original GitHub issueLatest master.
Steps:
- Upload any picture.
- At the caption step, enter a name with a space at the end.
- The upload seems to be starting fine, but at the end it fails with the logcat error
titleblacklist-custom-space
.
Issue Analytics
- State:
- Created a year ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
what is trailing whitespace and how can I handle this?
Trailing whitespace is any spaces or tabs after the last non-whitespace character on the line until the newline. In your posted question, there...
Read more >Remove leading and trailing white space from string - MATLAB
newStr = strtrim( str ) removes the leading and trailing whitespace characters from the string str . Use this operator in the Requirements...
Read more >Why is trailing whitespace a big deal? [closed]
When I have string literals that span multiple lines, trailing whitespace can make the output string look incorrect when it's used. While not ......
Read more >no-trailing-spaces - ESLint - Pluggable JavaScript Linter
This rule disallows trailing whitespace (spaces, tabs, and other Unicode whitespace characters) at the end of lines. Examples of incorrect code for this...
Read more >Remove Spaces from a String In Python - DigitalOcean
The Python String strip() method removes leading and trailing characters from a string. The default character to remove is space.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I think the solution could be to add a method in
UploadMediaDetailInputFilter.java
to check the trailing whitespace in the caption field. Then in thefilter
, if the input text has any trailing whitespace, simply remove it. I’m going to implement these methods and hope the solution works.Unfortunately, this solution doesn’t work because any empty space the user types is recognized as trailing space. Instead, I have another solution to remove them after the user typed the caption. Any trailing whitespace will be removed when set to
uploadMediaDetails
.