<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to 17: Fake soft wrap to support fancy line wrapping options</title><link href="https://sourceforge.net/p/vim-tohtml/issues/17/" rel="alternate"/><link href="https://sourceforge.net/p/vim-tohtml/issues/17/feed.atom" rel="self"/><id>https://sourceforge.net/p/vim-tohtml/issues/17/</id><updated>2023-09-18T03:24:57.287000Z</updated><subtitle>Recent changes to 17: Fake soft wrap to support fancy line wrapping options</subtitle><entry><title>Ticket #17: Fake soft wrap to support fancy line wrapping options discussion</title><link href="https://sourceforge.net/p/vim-tohtml/issues/17/?limit=25#0dc5" rel="alternate"/><published>2023-09-18T03:24:57.287000Z</published><updated>2023-09-18T03:24:57.287000Z</updated><author><name>fritzophrenic</name><uri>https://sourceforge.net/u/fritzophrenic/</uri></author><id>https://sourceforge.net67d62e97aaffe472ecb3dd24e2f5110b3e86e2a2</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;labels&lt;/strong&gt;: minor, proposal --&amp;gt; feature&lt;/li&gt;
&lt;li&gt;Description has changed:&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Diff:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Milestone&lt;/strong&gt;:  --&amp;gt; &lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</summary></entry><entry><title>Fake soft wrap to support fancy line wrapping options</title><link href="https://sourceforge.net/p/vim-tohtml/issues/17/" rel="alternate"/><published>2018-10-24T22:08:07Z</published><updated>2018-10-24T22:08:07Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.netab48e29be65394fbfbc1a4205446485afbdfbc0e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; &lt;a class="" href="https://github.com/fritzophrenic" rel="nofollow"&gt;fritzophrenic&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;a class="" href="https://bitbucket.org/fritzophrenic/vim-tohtml/issue/17" rel="nofollow"&gt;Original report&lt;/a&gt; by Ben Fritz (Bitbucket: &lt;a class="" href="https://bitbucket.org/fritzophrenic%20NA" rel="nofollow"&gt;fritzophrenic NA&lt;/a&gt;, ).&lt;/strong&gt;&lt;/p&gt;
&lt;hr/&gt;
&lt;p&gt;Setting 'wrap' in Vim can be (mostly) simulated in the TOhtml output using the g:html_pre_wrap option.&lt;/p&gt;
&lt;p&gt;But this doesn't reflect the setting of 'breakindent', nor can it simulate 'nolinebreak' and 'breakat', nor does it attempt to simulate the 'showbreak' option.&lt;/p&gt;
&lt;p&gt;Inspiration from "Bryce Orgill": &lt;a href="https://groups.google.com/d/topic/vim_use/0eRfPISDhW8/discussion" rel="nofollow"&gt;https://groups.google.com/d/topic/vim_use/0eRfPISDhW8/discussion&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Enhancement idea: simulate the wrapping by inserting linebreaks and spaces wherever Vim does this visually. Introduce new g:html_fake_wrap option or similar to manage whether real wrapping via pre_wrap or fake wrapping like this is used. Check the Vim tests of the 'wrap' and 'breakindent' options to see how Vim test suites are able to access what is actually displayed.&lt;/p&gt;
&lt;p&gt;Unless recent HTML/CSS developments make even this craziness possible without inserting extra text...&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>