[Libreoffice-commits] dev-tools.git: help3/html

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Tue Sep 4 14:06:08 UTC 2018


 help3/html/index.html    |    5 ++++-
 help3/html/snippets.js   |    8 ++++----
 help3/html/xhpeditor.css |   17 +++++++++++++++++
 3 files changed, 25 insertions(+), 5 deletions(-)

New commits:
commit 2bc52821754a0fb5d97f2f1c98f70c396fa5f059
Author:     Olivier Hallot <olivier.hallot at libreoffice.org>
AuthorDate: Tue Sep 4 09:56:35 2018 -0300
Commit:     Olivier Hallot <olivier.hallot at libreoffice.org>
CommitDate: Tue Sep 4 16:05:51 2018 +0200

    Add some more snippets
    
    Change-Id: I0931592e6f4d5ea0e67d4aa67aab3c56559738f7
    Reviewed-on: https://gerrit.libreoffice.org/59983
    Reviewed-by: Olivier Hallot <olivier.hallot at libreoffice.org>
    Tested-by: Olivier Hallot <olivier.hallot at libreoffice.org>

diff --git a/help3/html/index.html b/help3/html/index.html
index a4e806b..a5564d0 100644
--- a/help3/html/index.html
+++ b/help3/html/index.html
@@ -93,9 +93,12 @@
         <button onclick="tLink()" class="snip_buttons">Link</button>
     </div>
 </div>
+<!--
 <div class="rightside">
-<!--     will put the xml transformed here -->
+    will put the xml transformed here
+    <h2>Rendered page</h2> 
 </div>
+-->
 </body>
 <script type="text/javascript" src="autocomplete.js"></script>
 <script type="text/javascript" src="snippets.js"></script>
diff --git a/help3/html/snippets.js b/help3/html/snippets.js
index a9c647c..891ae4e 100644
--- a/help3/html/snippets.js
+++ b/help3/html/snippets.js
@@ -47,7 +47,7 @@ function bascode_par() {
 // Tables
 // simple table cell
 function tCell (role){
-    return '       <tablecell>\n           <paragraph id="' + random('par') + '" role="' + role + '" xml-lang="en-US" ></paragraph>\n       </tablecell>';
+    return '       <tablecell>\n           <paragraph id="' + random('par') + '" role="' + role + '" xml-lang="en-US" ></paragraph>\n       </tablecell>\n';
 }
 
 
@@ -67,7 +67,7 @@ function table2R3C() {
     var a1 = '<table id="' + random('tab') + '">\n';
     var a2 = '   <tablerow>\n';
     var a4 = '   </tablerow>\n';
-    var a5 = a4 + '\n</table>';
+    var a5 = a4 + '\n</table>\n';
     editor.replaceRange(a1 + a2 + tCell('tablehead') + tCell('tablehead') + tCell('tablehead') + a4 + a2 + tCell('tablecontent') + tCell('tablecontent') + tCell('tablecontent') + a5, editor.doc.getCursor());
 }
 
@@ -149,7 +149,7 @@ function tList(mode){
 
 function listItem(){
     var a1 = '    <listitem>\n        <paragraph id="' + random('par') + '" role="listitem" xml-lang="en-US">';
-    var a2 = '</paragraph>\n    </listitem>';
+    var a2 = '</paragraph>\n    </listitem>\n';
     editor.replaceSelection(a1+ editor.doc.getSelection() + a2,'');
 }
 
@@ -161,7 +161,7 @@ function tVariable() {
     editor.replaceSelection(a1 + editor.doc.getSelection() + a2,'');
 }
 function tEmbed(){
-    var a1 = '<embed href="text/CHANGE ME(path/to/xhp/file#select id)"/>';
+    var a1 = '<embed href="text/CHANGE ME(path/to/xhp/file#select id)"/>\n';
     editor.replaceRange(a1, editor.doc.getCursor());
 }
 function tEmbedvar(){
diff --git a/help3/html/xhpeditor.css b/help3/html/xhpeditor.css
index 935c9bb..7036cf1 100644
--- a/help3/html/xhpeditor.css
+++ b/help3/html/xhpeditor.css
@@ -19,3 +19,20 @@
     display:inline-block;
     width:5em;
 }
+/*
+.leftside{
+    top: 0%;
+    left:0%;
+    right:50%
+    position:absolute;
+    background: yellow;
+    display:block;
+}
+.rightside{
+    top: 0%;
+    right:0%;
+    left: 50%;
+    position:absolute;
+    background: cyan;
+}
+*/


More information about the Libreoffice-commits mailing list