svenevs/exhale

Generated file_view_hierarchy hitting line length limit

Opened this issue · 2 comments

Using exhale on a rather large project and the generated file_view_hierarchy.rst and sometimes class_view_hierarchy.rst files are hitting the line length. I think this is because the raw html in the rst is not split into multiple lines for the return statement.

<div id="class-treeView"></div>
   <script type="text/javascript">
     function getClassHierarchyTree() {
        return [
         {text: <<<< PROBLEMATIC LINE
        ]
     }
   </script><!-- end getClassHierarchyTree() function -->

Therefore when generating the library_root.rst it will not display the nice drop down for each.

Note: Using a bootstrap theme.

Using exhale on a rather large project

I'm sorry for your build times and delayed response 😶

I think this is because the raw html in the rst is not split into multiple lines for the return statement.

I confess, any html or js created by my project lacks any actual knowledge of either language.

function getClassHierarchyTree() {
return [
{
text: "<span class=\"text-muted\">Namespace</span> nested",
href: "namespace_nested.html#namespace-nested",
selectable: false,
tags: ['4'],

If you set minifyTreeView to False does it produce something functional? I think that will make the page load time somewhat tragic, but exhale stumbles on large projects. It sounds like I need to do something differently? This should be fixable provided the rules are known 🙂

Setting minifyTreeView to False removes the line-length-limit warning. The Class Hierarchy & File Hierarchy shows up in the docs.