First - I’m sorry if this in the wrong category.
If sharing something from another app to Drafts and appending or prepending it to an existing draft, how can I create a line break before or after without having to manually do so each time?
Thanks in advance!
Btw, when you share a draft to twitter, do the tags appear as hashtags in the tweet? I guess that could be scripted as an action.
TL;DR: how do I append shared text with a preceding line break
Edit: switched words for clarity
The share extension already adds a line break when appending/prepending, should not need to do anything special there.
Hashtags are hashtags.There is nothing special to do to mark a hashtag for Twitter other than using the # sign.
Sorry for all the confusion created on my part. Thank you for taking the time to answer my questions.
Is there a way to have it add an additional line break?
Sorry, I meant to ask if the document/draft tags could be transferred over into the tweet body as hashtags.
Just wanted to bump this thread in case anyone has any useful idea.
Currently when I share things successively, it looks like:
It doesn’t seem like a big deal in the examples, but it looks messier when you see it in practice.
Thanks in advance.
What does your share extension look like?
For example mine includes line breaks and looks like this:
My share extension looks like that. I’m trying to insert an extra line break (which I didn’t make clear initially). Would you happen to know how to include one?
Maybe I’m misunderstanding the question, and I apologize if I am, but when I tap into the WEB TEMPLATE space in the settings screen that sylumer posted above (Settings->Share extension), I can append or prepend a number of line breaks (using the “return” key on the standard iOS onscreen keyboard) to the beginning or end of the template and the extension appears to include them when I use it.
The web template only seems to work from safari. (The help text specifically says Safari.) Below, the first is from Safari, the next 2 are from twitter, and the last two are from chrome. Maybe this is what’s happening?
[macOS - Safari - Apple](https://www.apple.com/safari/)
Excellent spot! The OP does make reference to Twitter on the secondary part, just not the first so coming from some Twitter client does make sense.
If that’s the case then I can see two options.
- Use a different method of getting the content into Drafts that includes the line break. This could be accomplished with a share sheet enabled workflow in Workflow for example that receives the Twitter information and then appends it to the draft.
- Let the shared info build up and then run a Drafts action to format the information afterwards. This could be done by checking for URLs on a line and checking that is is followe by a blank line - where it isn’t a blank line is inserted.
I guess copy & paste and iPad split screen may offer some additional minor variations as well.
You can manually add the new lines in non safari cases before hitting save.
An action that spaces seems like the best approach.
I’m guessing this is some technical limitation outside of Safari. Wonder what it is?
Thanks for the observations and suggestions, all. I would enter a line break before hitting save, but it would become tedious having to do it dozens of times or going back to the document later, if compiling a list of links for different subjects.