search for: indent

Displaying 20 results from an estimated 1933 matches for "indent".

2014 Jan 12
6
[LLVMdev] RFC: Change coding standard to not indent namespaces ever
Currently there is a mixture of indented namespaces and un-indented namespaces in both LLVM and Clang. I think this is confusing and it wastes developer time debating the issue. I'd like to pick one and stick with it consistently. Indenting cannot possibly work in many contexts -- file-wide namespaces just make no sense to indent....
2018 Feb 22
0
[PATCH 1/5] v2v: DOM: Add doc_to_string function.
...OM.ml b/v2v/DOM.ml index 7f66e0920..2b6a21fd1 100644 --- a/v2v/DOM.ml +++ b/v2v/DOM.ml @@ -46,43 +46,48 @@ let e name attrs children = * we will be writing, ie. libvirt XML and OVF metadata, where * whitespace is generally not significant, but readability is useful. *) -let rec node_to_chan ?(indent = 0) chan = function - | PCData str -> output_string chan (xml_quote_pcdata str) +let rec node_to_buf ?(indent = 0) buf = function + | PCData str -> + Buffer.add_string buf (xml_quote_pcdata str) | Comment str -> - output_spaces chan indent; - fprintf chan "<!-- %s -...
2016 Feb 24
0
[PATCH 3/3] src: print contents of structs and struct lists on tracing
...1623,7 +1624,7 @@ and generate_client_actions hash () = let needs_i = match ret with - | RStringList _ | RHashtable _ -> true + | RStringList _ | RHashtable _ | RStructList _ -> true | _ -> false in if needs_i then ( pr "%s size_t i;\n" indent; @@ -1656,15 +1657,25 @@ and generate_client_actions hash () = pr "%s }\n" indent; pr "%s fputs (\"]\", trace_buffer.fp);\n" indent; | RStruct (_, typ) -> - (* XXX There is code generated for guestfish for printing - * th...
2016 Feb 24
3
[PATCH 1/3] src: generate code for printing contents of structs
...nt.h\" + +"; + + let write_structs = + List.iter ( + fun { s_name = typ; s_cols = cols } -> + let needs_i = + List.exists (function (_, (FUUID|FBuffer)) -> true | _ -> false) cols in + + pr "void\n"; + pr "guestfs_int_print_%s_indent (struct guestfs_%s *%s, FILE *dest, const char *linesep, const char *indent)\n" + typ typ typ; + pr "{\n"; + if needs_i then ( + pr " size_t i;\n"; + pr "\n" + ); + List.iter ( + function +...
2019 Apr 26
1
Fix: menu indent for menu entry
Hello, While experimenting with possible menu layout found this issue; the entry for MENU BEGIN doesn't follow MENU INDENT. *Sample config* label - menu disable menu label Distro label rhel menu indent 2 menu label RHEL label cent menu indent 2 menu label Centos label fed menu indent 2 menu label Fedora menu begin menu indent 2 menu label Others menu end # 'Others' doesn't have indentation to match...
2009 Dec 18
2
[LLVMdev] [PATCH] dbgs() Use
...id SDNode::dump(const SelectionDAG *G) const { - print(errs(), G); + print(dbgs(), G); } void SDNode::print_types(raw_ostream &OS, const SelectionDAG *G) const { @@ -5834,12 +5835,12 @@ if (N->getOperand(i).getNode()->hasOneUse()) DumpNodes(N->getOperand(i).getNode(), indent+2, G); else - errs() << "\n" << std::string(indent+2, ' ') - << (void*)N->getOperand(i).getNode() << ": <multiple use>"; + dbgs() << "\n" << std::string(indent+2, ' ') + &...
2009 Aug 11
1
[PATCH libguestfs] doc: improve emacs snippets
I've made some local commits that introduce TABs as indentation, and thus provoke a "make syntax-check" failure. This would have prevented it: >From 4740b66adc5985d9a72a7648aa60c5389ffc31af Mon Sep 17 00:00:00 2001 From: Jim Meyering <meyering at redhat.com> Date: Tue, 11 Aug 2009 09:53:16 +0200 Subject: [PATCH libguestfs] doc: improve...
2019 Jul 25
1
Re: [PATCH libnbd 1/3] generator: Change Closure so it describes single callbacks.
...| UInt64 n -> pr " \"K\"" >> > + (* The following not yet implemented for callbacks XXX *) >> > + | ArrayAndLen _ | Bool _ | BytesOut _ >> > + | BytesPersistIn _ | BytesPersistOut _ >> >> Not your usual indentation style. > >I think at some point I gave up fighting tuareg mode :-( > >I need to ask Martin for the right settings to make it indent in the >preferred way. > So I only found this: tuareg-electric-indent is a variable defined in ‘tuareg.el’. Its value is nil Documentation: W...
2018 Jan 23
2
LAYOUT=fs
...quot;><font face="Arial" size="2"><span style=" font-size:10pt">On 22.01.2018 00:46, Jungersen, Danjel - Jungersen Grafisk ApS wrote:</span></font></div> <div align="left" style="margin-left:9mm; margin-right:0mm; text-indent:0mm; margin-top:0.00mm; margin-bottom:0.00mm;"><font face="Arial" size="2"> <span style=" font-size:10pt">Hi there.</span></font></div> <div align="left" style="margin-left:9mm; margin-right:0mm; text-indent:0mm;...
2007 Oct 22
0
12 commits - libswfdec/swfdec_as_strings.c libswfdec/swfdec_html_parser.c libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field.h libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c libswfdec/swfdec_text_field_movie.h test/trace
...put-6.swf.trace @@ -0,0 +1,120 @@ +0: multiline: false condenseWhite: false +a +<P ALIGN="LEFT"><FONT FACE="Times New Roman" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">a</FONT></P> +0/a: align=left blockIndent=0 bold=false bullet=false color=0 display=block font=Times New Roman indent=0 italic=false kerning= leading=0 leftMargin=0 letterSpacing= rightMargin=0 size=12 tabStops= target= underline=false url= +0: multiline: true condenseWhite: false +a +<P ALIGN="LEFT"><FONT FACE="Tim...
2017 Mar 09
2
Error in formatDL(nm, txt, indent = max(nchar(nm, "w")) + 3)
...I tried "debug(help)" with the problem mentioned below. It stopped > with a call to "library", from which I generate the following simple > replication of this error: > > >> library(help = 'fda', character.only = TRUE) > Error in formatDL(nm, txt, indent = max(nchar(nm, "w")) + 3) : > incorrect values of 'indent' and 'width' > > > This was using R 3.3.3 inside RStudio on a Mac, as noted below. This > same "library(help='fda', character.only=TRUE)" ran fine using R Console > 3.2....
2016 Jun 02
6
-Wmisleading-indentation violations
Hi, I was building LLVM with gcc 6.1.1 recently and it was spitting out some warnings relating to misleading indention that caught my eye. This wasn't a fresh build so I may have missed some. I've CC'ed the authors of the potentially misleading lines so they can decide what do about the warnings (if anything). I'm wondering if clang-format is making some inappropriate choices here or these are j...
2007 Oct 25
0
18 commits - libswfdec/swfdec_player_internal.h libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_format.c libswfdec/swfdec_text_format.h libswfdec/swfdec_xml.c libswfdec/swfdec_xml_node.c libswfdec/swfdec_xml_node.h test/trace
...t-6.swf differ diff --git a/test/trace/text-field-set-text-format-6.swf.trace b/test/trace/text-field-set-text-format-6.swf.trace new file mode 100644 index 0000000..af140ad --- /dev/null +++ b/test/trace/text-field-set-text-format-6.swf.trace @@ -0,0 +1,149 @@ +Starting state: +0: align=right blockIndent=0 bold=false bullet=false +1: align=right blockIndent=0 bold=true bullet=false +2: align=right blockIndent=0 bold=true bullet=false +3: align=right blockIndent=0 bold=true bullet=false +4: align=right blockIndent=0 bold=true bullet=false +5: align=right blockIndent=0 bold=true bullet=false +6: alig...
2009 Aug 05
6
No way to indent text?
How could one indent (not quote) a block of text? This is commonly done in Wikipedia with one or more colons at the beginning of the line, and is very handy for threaded discussions. An example is at http://en.wikipedia.org/w/index.php?title=Wikipedia:Articles_for_deletion/MojoMojo&diff=next&oldid=275101911...
2007 Oct 22
0
5 commits - libswfdec/swfdec_html_parser.c libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c test/trace
...-6.swf differ diff --git a/test/trace/text-field-html-input-6.swf.trace b/test/trace/text-field-html-input-6.swf.trace index e976072..43479bd 100644 --- a/test/trace/text-field-html-input-6.swf.trace +++ b/test/trace/text-field-html-input-6.swf.trace @@ -118,3 +118,31 @@ ab c 1/b: align=right blockIndent=0 bold=false bullet=false color=0 display=block font=Times New Roman indent=0 italic=false kerning= leading=0 leftMargin=0 letterSpacing= rightMargin=0 size=12 tabStops= target= underline=false url= 2/ : align=right blockIndent=0 bold=false bullet=false color=0 display=block font=Times New Roman i...
2018 Jan 23
1
LAYOUT=fs
...quot;><font face="Arial" size="2"><span style=" font-size:10pt">On 23.01.2018 11:27, Jungersen, Danjel - Jungersen Grafisk ApS wrote:</span></font></div> <div align="left" style="margin-left:9mm; margin-right:0mm; text-indent:0mm; margin-top:0.00mm; margin-bottom:0.00mm;"> <hr size="1pt" width="100%" align="left"/> <font face="Arial" size="2"><span style=" font-size:10pt"><br /> </span></font></div> <div alig...
2017 Mar 09
0
Error in formatDL(nm, txt, indent = max(nchar(nm, "w")) + 3)
It happens in the fda package because some of the headers are longer than typical (e.g., "Repository/R-Forge/DateTimeStamp") and formatDL dies if the indent argument is too large compared to the width argument. It might be nice to change formatDL so it never gave such an error, but did something reasonable when the 'indent' argument was too big. Changing if (indent > width/2) stop("incorrect values of 'indent' and 'width...
2009 Jan 02
0
[LLVMdev] TableGen crash
...wardOptionPropertyHandlingCode - Helper function used to /// implement EmitActionHandler. Emits code for /// handling the (forward) and (forward_as) option properties. void EmitForwardOptionPropertyHandlingCode (const OptionDescription& D, const char* Indent, const std::string& NewName, std::ostream& O) { const std::string& Name = NewName.empty() ? ("-" + D.Name) : NewName; switch (D.Type) { case OptionType::Switch: O <&lt...
2009 Jun 05
15
Rails Code Indentation
Hi All, Rails code must be readable, formatted and well indented. I wanted to do indent code in my previous projects. Is there any built in rails plugin/gem that can help me to indent my existing code. Any ideas will be really appreciated ! NOTE: Please don''t suggest editor plugins. Thanks & Regards, Sandip R~ -- Ruby on Rails Developer http:...
2005 Sep 24
1
Indentation in R code
I am using emacs-21.3 when writing R functions on Linux debian, and I am trying to follow the advice i R-exts.pdf (2.1.1) regarding indentation. That is, I set 'c-default-style' to "bsd" and 'c-basic-offset' to 4. However, while this gives me the intended indentation in C code, it doesn't change the behavior in R code; I still get an indentation of size 2. This is my .emacs file after customization: (re...