<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>showyou</author_name>
  <author_url>https://blog.hatena.ne.jp/showyou/</author_url>
  <blog_title>White scenery @showyou, hatena</blog_title>
  <blog_url>https://showyou.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>これがPython3特有なのかPython全体でそうなのかは知らないですが、うちの環境だと^Mを文中に含むファイルをreadlines()で読み込んだところ、改行が行われました。 環境 Windows10上のWSL2, Ubuntu 20.04 Python 3.8.2 ソース ファイル読み込み データ 文字列で貼り付けると^Mが消えるので画像で貼ります。 ^Mはctrl-Mです 結果 0 ／⌒ヽ1 / ´_ゝ`）すいません、ちょっと通りますよ・・・2 | /3 | /| |4 // | |5 Ｕ Ｕ 何が困るって、csvでデータを管理していて複数行に分けたくないのがあるので^Mを除去したいの…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshowyou.hatenablog.com%2Fentry%2F2020%2F05%2F16%2F235302&quot; title=&quot;解決: Pythonのreadlinesで^Mを含む文字列を読み込むと、勝手に改行される - White scenery @showyou, hatena&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/s/showyou/20200516/20200516234402.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-05-16 23:53:02</published>
  <title>解決: Pythonのreadlinesで^Mを含む文字列を読み込むと、勝手に改行される</title>
  <type>rich</type>
  <url>https://showyou.hatenablog.com/entry/2020/05/16/235302</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
