#939 Close the macro in the example python spec file
Opened 7 months ago by pingou. Modified 7 months ago
pingou/packaging-committee master  into  master

@@ -11,7 +11,7 @@ 


  BuildArch:      noarch


- %global _description %{expand:

+ %global _description %{expand}:

  A python module which provides a convenient example. This is the

  rest of of the description that provides more details.}


Signed-off-by: Pierre-Yves Chibon pingou@pingoured.fr

I believe this was a typo but I have to say that I was not able to get it to work in this form (I ended up using the same construct as in the rust example: %global _description \).

I believe the original is right. I have been doing it this way for some time:

%global foo %{expand:

hm, ok then may I suggest we put the } in a new line as @decathorpe presented? I put some enphasis to it and helps seeing it (I had not seen it until now).

I don't mind either way.

If you put the closing } onto a new line, the variable will contain a trailing newline. If you don't, it won't. Do whatever is appropriate for where you will use that value :)

BTW: Do you have a snippet where this doesn't work as expected? Without that, it's hard to tell what's going wrong.