The branch, xhtml/new_features/css-separate-directory, has been created.
        at  db8a5a9105a0d6616eef210e3f7d587867cacc32 (commit)

- Log -----------------------------------------------------------------

commit db8a5a9105a0d6616eef210e3f7d587867cacc32
Author: Josh Hieronymus <[email protected]>
Date:   Fri Jul 26 16:40:48 2013 -0400

    Write external CSS file to "styles" directory
    
    When the "Write CSS to File" option is selected in the Document >
    Settings > Output dialog box, write CSS to an external file
    "docstyle.css" located in the "styles" directory, a subdirectory of the
    directory in which the LyX and XHTML files are saved.

diff --git a/src/Buffer.cpp b/src/Buffer.cpp
index 73d6ad5..85ab3b5 100644
--- a/src/Buffer.cpp
+++ b/src/Buffer.cpp
@@ -1924,9 +1924,10 @@ void Buffer::writeLyXHTMLSource(odocstream & os,
                                        ocss.close();
                                        written = true;
                                        // write link to header
-                                       os << "<link rel='stylesheet' 
href='docstyle.css' type='text/css' />\n";
+                                       os << "<link rel='stylesheet' 
href='styles/docstyle.css' type='text/css' />\n";
                                        // register file
-                                       
runparams.exportdata->addExternalFile("xhtml", fcssfile);
+                                       string const fcssfileinstylesdir = 
filePath() + "styles/docstyle.css";
+                                       
runparams.exportdata->addExternalFile("xhtml", fcssfile, fcssfileinstylesdir);
                                }
                        }
                        // we are here if the CSS is supposed to be written to 
the header

-----------------------------------------------------------------------


hooks/post-receive
-- 
Repositories for GSOC work

Reply via email to