#@+leo
#@+node:0::@file plugins/mod_outline_export.py
#@+body
"""modify the way exported outlines are displayed"""

from leoPlugins import *
from leoGlobals import *

def onStart (tag,keywords):
	import leoNodes
	funcToMethod(newMoreHead,leoNodes.vnode,"moreHead")


#@+others
#@+node:1::newMoreHead
#@+body
# Returns the headline string in MORE format.

def newMoreHead (self,firstLevel,useVerticalBar=true):

	useVerticalBar = true # Force the vertical bar

	v = self
	level = self.level() - firstLevel
	if level > 0:
		if useVerticalBar:
			s = " |\t" * level
		else:
			s = "\t"
	else:
		s = ""
	s += choose(v.hasChildren(), "+ ", "- ")
	s += v.headString()
	return s

#@-body
#@-node:1::newMoreHead
#@-others


if 1: # Register the handlers...
	registerHandler("start2", onStart)
	
	import mod_outline_export
	es("...modified export v1.1: " + plugin_date(mod_outline_export))
#@-body
#@-node:0::@file plugins/mod_outline_export.py
#@-leo
