Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Welcome to Codidact Meta!

Codidact Meta is the meta-discussion site for the Codidact community network and the Codidact software. Whether you have bug reports or feature requests, support questions or rule discussions that touch the whole network – this is the site for you.

Comments on Issues with copying post source from revision history

Post

Issues with copying post source from revision history

+2
−1

When I try to copy and paste text out of a revision history for a question or answer, I notice that:

  • Blank lines are not preserved
  • If I copy the entire text of a revision, the entire thing will also be indented by four spaces on each line, and have two blank lines added on each end. (Skipping even a single character at either the beginning or end seems to avoid this.)

(This caused problems for me lately, as I attempted to use a revision history to create a Git backup of changes to a post for my personal records.)

History
Why does this post require attention from curators or moderators?
You might want to add some details to your flag.
Why should this post be closed?

1 comment thread

Related feature request (5 comments)
Related feature request
trichoplax‭ wrote over 1 year ago

There is another feature request for Can we have a "show post source" button?. That one is for the post itself, rather than the revision history. Perhaps it would be useful to have both? A "show source" or "raw text" button on a post, and a similar button on each entry in the revision history.

This would be showing raw Markdown (or HTML or MathJax depending on what the post author chose). Is this useful for your purposes or would you want just the text without any markup?

Karl Knechtel‭ wrote over 1 year ago

I want the raw Markdown/etc. (the actual post source), yes.

trichoplax‭ wrote over 1 year ago

There's also some discussion of scraping in Is it okay to scrape Codidact for personal tools? and I've mentioned an API as an alternative approach. Would an API providing raw source text be relevant to your purposes? If so it would be good to get your input on what requirements you'd have (for this specific purpose and for an API in general). I might make a separate Meta post about what people want to see in an API.

Karl Knechtel‭ wrote over 1 year ago

Oh, it was just a one-off task to back up an edit history for something I already posted. In the future I plan to have a workflow where I save things locally first, so it won't be a problem anyway.

That said, I can definitely see the utility of such an API in general and I would definitely encourage you to make that post!

trichoplax‭ wrote over 1 year ago

Meta discussion started: How should a Codidact public API work? .