Post History
Ruby, 70 bytes ->s{s+=s.reverse;s[..-2].gsub(/./){t=$&+' '*$.+$/;t[-2]=$&;$.+=1;t}+s} Try this online!
Answer
#1: Initial revision
# [Ruby](https://www.ruby-lang.org), 70 bytes ```ruby ->s{s+=s.reverse;s[..-2].gsub(/./){t=$&+' '*$.+$/;t[-2]=$&;$.+=1;t}+s} ``` **[Try this online!](https://ato.pxeger.com/run?1=m72kqDSpcsHiNNuYpaUlaboWN9107Yqri7Vti_WKUstSi4pTrYuj9fR0jWL10otLkzT09fQ1q0tsVdS01RXUtVT0tFX0rUuigdJAIWsg19bQuqRWu7gWYtr6gtKSYoW0aCWP1JycfKVYiOiCBRAaAA)**