new_version
new_version copied to clipboard
How to break line notes version?
\n dont work
Both the title and description of your issue are extremely vague. Could you provide more information about what the issue is?
when my version news description has a line break, the plugin doesn't recognize and show correctly.
In play store: WHAT'S NEW ● XXXXXXXXXXXXXXX; ● YYYYYYYYYYYYYY; ● ZZZZZZZZZZZZZZZ;
In plugin dialog: ● XXXXXXXXXXXXXXX;● YYYYYYYYYYYYYY;● ZZZZZZZZZZZZZZZ;
Oh, you're showing a custom dialog and displaying the release notes.
This is tricky because the play store actually inserts <br> elements between lines, instead of returning a string with \n in it. We'd have to detect the <br>s and convert them to \n
Oh, you're showing a custom dialog and displaying the release notes. This is tricky because the play store actually inserts
<br>elements between lines, instead of returning a string with\nin it. We'd have to detect the<br>s and convert them to\n
bro can u give an example. I tried this method
_dialogText.replaceAll('<br>', '\n'); not working for me
Sorry what I mean is that the Play Store text element looks like this:
New feature X
<br>
New feature Y
When I scrape this text, I only collect the plain text: New feature X New feature Y.
I'd have to update the plugin to recognize <br> elements and replace them with \n
ok. Thank you for your quick response
Hi, is there any update on this? Thanks
I'm using this method for now. hope I can give you an idea.
Example releaseNotes value:
- description 1. - description 2. - description 3.
List<String> releaseNotesList = [];
releaseNotesList = status.releaseNotes!.split('.');
dialogText = releaseNotesList.join('.\n').trim();
Example output:
- description 1.
- description 2.
- description 3.