<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Labyrinth_of_Wisdom</author_name>
  <author_url>https://blog.hatena.ne.jp/Labyrinth_of_Wisdom/</author_url>
  <blog_title>Labyrinth of Wisdom</blog_title>
  <blog_url>https://labyrinth-of-wisdom.hatenadiary.com/</blog_url>
  <categories>
    <anon>Salesforce</anon>
  </categories>
  <description>Visualforceで一定の文字数を指定して自動改行をするメソッドを作ったので、自分用にメモ。 意外と使いどころが多いんじゃないかと思います。PDFページとか文字が突き抜けでしまうので。 cloudcompass.seesaa.net Apexクラス 第一引数に改行したい文字、第二引数に改行したい文字数を指定。 \r\nを削除している行がありますが、これはオブジェクトのテキストエリア型などから値を取得してくる場合に有効なので書いています。 decimalStRowsを取得する部分も、Salesforceが勝手に四捨五入するという動きがあるので、確実に処理するためにDecimal型にしてます。…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Flabyrinth-of-wisdom.hatenadiary.com%2Fentry%2F2017%2F10%2F05%2F115936&quot; title=&quot;【Salesforce】一定の文字数で改行して画面に表示する方法 - Labyrinth of Wisdom&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://pbs.twimg.com/profile_images/716283264881700865/voT_NePC_400x400.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-10-05 11:59:36</published>
  <title>【Salesforce】一定の文字数で改行して画面に表示する方法</title>
  <type>rich</type>
  <url>https://labyrinth-of-wisdom.hatenadiary.com/entry/2017/10/05/115936</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
