+ if(!this.editNode){ + if(this.iframe.contentWindow){ + this.window = this.iframe.contentWindow; + }else{ + // for opera + this.window = this.iframe.contentDocument.window; + } + if(dojo.render.html.moz){ + this.document = this.iframe.contentWindow.document + }else{ + this.document = this.iframe.contentDocument; + } + + // curry the getStyle function + var getStyle = (function (domNode) { return function (style) { + return dojo.style.getStyle(domNode, style); + }; })(this.domNode); + + var font = + getStyle('font-weight') + " " + + getStyle('font-size') + " " + + getStyle('font-family'); + + // line height is tricky - applying a units value will mess things up. + // if we can't get a non-units value, bail out. + var lineHeight = "1.0"; + var lineHeightStyle = dojo.style.getUnitValue(this.domNode, 'line-height'); + if (lineHeightStyle.value && lineHeightStyle.units=="") { + lineHeight = lineHeightStyle.value; + } + + dojo.style.insertCssText( + ' body,html { background: transparent; padding: 0; margin: 0; }\n' + + // TODO: left positioning will case contents to disappear out of view + // if it gets too wide for the visible area + ' body { top: 0; left: 0; right: 0;' + + (this.height ? '' : ' position: fixed; ') + + ' font: ' + font + ';\n' + + ' min-height: ' + this.minHeight + '; \n' + + ' line-height: ' + lineHeight + '} \n' + + ' p { margin: 1em 0 !important; }\n' + + ' body > *:first-child { padding-top: 0 !important; margin-top: ' + this._firstChildContributingMargin + 'px !important; }\n' + // FIXME: test firstChild nodeType + ' body > *:last-child { padding-bottom: 0 !important; margin-bottom: ' + this._lastChildContributingMargin + 'px !important; }\n' + + ' li > ul:-moz-first-node, li > ol:-moz-first-node { padding-top: 1.2em; }\n' + + ' li { min-height: 1.2em; }\n' + + //' p,ul,li { padding-top: 0; padding-bottom: 0; margin-top:0; margin-bottom: 0; }\n' + + '', this.document); + + tmpContent.parentNode.removeChild(tmpContent); + this.document.body.innerHTML = html; + if(oldMoz){ + this.document.designMode = "on"; + } + this.onLoad(); + }else{ + tmpContent.parentNode.removeChild(tmpContent); + this.editNode.innerHTML = html; + this.onDisplayChanged(); CVS--Concurrent Versions System - rcsinfo
Structural Informatics Group (SIG) logo
Home | Projects | Demos | Downloads | Publications | Local Info | About Us | New site
Go to the first, previous, next, last section, table of contents.


Rcsinfo

The `rcsinfo' file can be used to specify a form to edit when filling out the commit log. The `rcsinfo' file has a syntax similar to the `verifymsg', `commitinfo' and `loginfo' files. See section The common syntax. Unlike the other files the second part is not a command-line template. Instead, the part after the regular expression should be a full pathname to a file containing the log message template.

If the repository name does not match any of the regular expressions in this file, the `DEFAULT' line is used, if it is specified.

All occurrences of the name `ALL' appearing as a regular expression are used in addition to the first matching regular expression or `DEFAULT'.

The log message template will be used as a default log message. If you specify a log message with `cvs commit -m message' or `cvs commit -f file' that log message will override the template.

See section Verifying log messages, for an example `rcsinfo' file.

When CVS is accessing a remote repository, the contents of `rcsinfo' at the time a directory is first checked out will specify a template which does not then change. If you edit `rcsinfo' or its templates, you may need to check out a new working directory.


Go to the first, previous, next, last section, table of contents.