{"action":"created","issue":{"url":"https://api.github.com/repos/jens-maus/yam/issues/8","repository_url":"https://api.github.com/repos/jens-maus/yam","labels_url":"https://api.github.com/repos/jens-maus/yam/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/jens-maus/yam/issues/8/comments","events_url":"https://api.github.com/repos/jens-maus/yam/issues/8/events","html_url":"https://github.com/jens-maus/yam/issues/8","id":146969438,"number":8,"title":"Yam 2.5+: formatting text only works on single line","user":{"login":"jens-maus","id":5887769,"avatar_url":"https://avatars.githubusercontent.com/u/5887769?v=3","gravatar_id":"","url":"https://api.github.com/users/jens-maus","html_url":"https://github.com/jens-maus","followers_url":"https://api.github.com/users/jens-maus/followers","following_url":"https://api.github.com/users/jens-maus/following{/other_user}","gists_url":"https://api.github.com/users/jens-maus/gists{/gist_id}","starred_url":"https://api.github.com/users/jens-maus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jens-maus/subscriptions","organizations_url":"https://api.github.com/users/jens-maus/orgs","repos_url":"https://api.github.com/users/jens-maus/repos","events_url":"https://api.github.com/users/jens-maus/events{/privacy}","received_events_url":"https://api.github.com/users/jens-maus/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jens-maus/yam/labels/@undecided","name":"@undecided","color":"ededed"},{"url":"https://api.github.com/repos/jens-maus/yam/labels/bug","name":"bug","color":"ee0701"},{"url":"https://api.github.com/repos/jens-maus/yam/labels/v2.5","name":"v2.5","color":"ededed"},{"url":"https://api.github.com/repos/jens-maus/yam/labels/wontfix","name":"wontfix","color":"ffffff"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2016-04-08T16:02:15Z","updated_at":"2016-04-08T16:03:40Z","closed_at":null,"body":"**Original reporter**: *pwrx55eju@users.sourceforge.net*\n\nYam 2.5+ does not color/bold/italicize text across mixed text (mixed formatted and non-formatted. It also will not format across multiple lines. Yam 2.4p1 will format across multiple lines and across mixed text formatting.\n\nExample:\n\n1) Start a new message.\n\n2) Fill the text are with several lines, such as:\n\n\n```\nKind regards Kind regards Kind regards Kind regards Kind regards Kind regards Kind regards Kind regards Kind regards Kind regards Kind regards Kind regards\n```\n\n\n3) Highlight a phrase and select \"color\", indicated between \"*\".\n\n\n```\nKind regards *Kind regards* Kind regards Kind regards Kind regards Kind regards Kind regards Kind regards Kind regards Kind regards Kind regards Kind regards\n```\n\n\n4) Now selected mixed text (both colored and non- colored and select \"color\" (shown between / /). The formatting fails.\n\n\n```\nKind regards /*Kind regards* Kind regards/ Kind regards Kind regards Kind regards Kind regards Kind regards Kind regards Kind regards Kind regards Kind regards\n```\n\n\n"},"comment":{"url":"https://api.github.com/repos/jens-maus/yam/issues/comments/207494158","html_url":"https://github.com/jens-maus/yam/issues/8#issuecomment-207494158","issue_url":"https://api.github.com/repos/jens-maus/yam/issues/8","id":207494158,"user":{"login":"jens-maus","id":5887769,"avatar_url":"https://avatars.githubusercontent.com/u/5887769?v=3","gravatar_id":"","url":"https://api.github.com/users/jens-maus","html_url":"https://github.com/jens-maus","followers_url":"https://api.github.com/users/jens-maus/followers","following_url":"https://api.github.com/users/jens-maus/following{/other_user}","gists_url":"https://api.github.com/users/jens-maus/gists{/gist_id}","starred_url":"https://api.github.com/users/jens-maus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jens-maus/subscriptions","organizations_url":"https://api.github.com/users/jens-maus/orgs","repos_url":"https://api.github.com/users/jens-maus/repos","events_url":"https://api.github.com/users/jens-maus/events{/privacy}","received_events_url":"https://api.github.com/users/jens-maus/received_events","type":"User","site_admin":false},"created_at":"2016-04-08T16:03:40Z","updated_at":"2016-04-08T16:03:40Z","body":"**Original reporter**: *pwrx55eju*\n\nOn 2009-10-30 Thore Böckelmann (thboeckel) worte:\n\n> You are still failing to see that mail texts are different from arbitrary texts. Within a specific scope you can use arbitrary styles, colors, anything, just display them and hide the meta information behind them from the user.\n\nOn the contrary, I am quite aware that mail/arbitrary texts differ. But I don't have any information about the specifics of how that is implemented in Yam, in what ways that implementation is constrained by MUI, nor am I familiar beyond a user level how mail system protocols work.\n\n> But mails are read on far more systems than just AmigaOS and not every mail client is able to display text styles at all. Think about simple\n\ntext\n\n> terminals. But style markers can be displayed on *any* system. YAM just adds some fancy styles and colors to these markers.\n\nI'm also quite familiar with other mail/terminal systems on various and alternative platforms in addition to AmigaOS, such as packet (ham) radio. My amateur radio call-sign is VE4CJ, so you see I'm no stranger to things technical. I have also done a fair bit or programming with various flavours of Basic, Unfortunately I'm a little too busy these days to spend much time testing or giving feedback.\n\nAnd you might be interested to know that at present I am primarily running an \"Amiga\" with a custom rom under E-UAE on my iMac ;-) But I look forward to the time the Natami will be available (see http://www.natami.net/ ).\n\n> And what's even more important: YAM must *NOT* delete any characters\n\nfrom\n\n> a mail because it may have no idea what exactly it is deleting. What if\n\nthe\n\n> deleted characters are more important than anything else around them?\n\nYou\n\n> just cannot tell. Imagine the character \"e\" would have a specific\n\nmeaning\n\n> within the mail text (just like \"*\" now has). With your wished approach this would reduce your name to \"rnst\". Think about it!\n\nAgreed. Most certainly YAM should not delete any characters. And Yam did exhibit that undesirable behaviour in the past, which was not good. And there are problems with displaying styled text when you actually want to insert the styled text markers as non-interpreted text. For instance, if one wishes to include an ARexx script within a message while display styled text is turned on, then the ARexx comment markers become interpreted as styled text.\n\nBut there's nothing wrong with configuring or making configurable how yam internally interprets and DISPLAYS those characters, especially if that is a setting one can toggle on/off and especially if yam does not modify the underlying text when interpreting styled text markers. And there should also be a means of toggling on/off how yam should treat such text when saving it. For instance, in addition to the option of saving the message as the raw message source code, one should also have the option of saving the message text as displayed, but with the option of styled text on or off (in other words, with or without the text markers).\n\nNow, the question is - how does one distinguish between styled text markers and instances where those same markers are intended to be inserted as literal, non-interpreted text? Moreover, if one should intentionally wish to insert literal text characters that coincide with the opening pair of styled text markers, but there are no complementary characters to close off that unintentional mark, then the rest of the text will inadvertently be interpreted as styled text!\n\nNow here is something I am not clear on: is Yam's method of displaying styled text something that is unique to Yam? Or are the styled text markers also a method used on other platforms and email clients, other than Amiga?\n\nIf the styled text markers are a method that are used on other platforms and we are trying to retain compatibility, then no doubt there are constraints that affect what you can/can't do with how yam also uses them.\n\nBut if the method is unique to yam, then why not use an escape character sequence to better ensure that the styled text markers are correctly inserted? I presume ascii character 27 is not allowable within the text of a plain text message, so it would not be permissible as an escape character. For instance in the Amiga Shell the sequence \"*E[\" is interpreted as the escape character. Perhaps that sequence could be used within yam for the same purpose, to be interpreted as styled character delimiters when \"show styled text\" is toggled on. The downside of such an approach is that it would simply look even more messy on a system or email client where the method is not understood.\n\n> The explanation in the FAQ may sound weak to you, but we cannot\n\nimplement\n\n> stuff into a mail client which will make it incompatible to thousands of other clients just because you don't like a specific feature. Disable styles and colors, that's all we can offer.\n\nYou don't have to expend a lot of time and energy to try and convince me of it. My feedback on this matter is simply an attempt to give some constructive input. Since I have neither the time nor inclination to get involved in this project at the source code level, I'll have to trust you to have investigated what is practical or not in this matter, and have you have selected the best approach under the circumstances.\n\nIt is DEFINITELY a good idea to be able to toggle on/off show styled text, both when reading and when composing emails, and when saving displayed message text.\n"}}