Suggestions for how to approach this problem?

John Salerno johnjsal at NOSPAMgmail.com
Tue May 8 16:00:13 EDT 2007


Marc 'BlackJack' Rintsch wrote:

> I think I have vague idea how the input looks like, but it would be
> helpful if you show some example input and wanted output.

Good idea. Here's what it looks like now:

1.  Levy, S.B. (1964)  Isologous interference with ultraviolet and X-ray 
irradiated
bacteriophage T2.  J. Bacteriol. 87:1330-1338.
2.  Levy, S.B. and T. Watanabe (1966)  Mepacrine and transfer of R 
factor.  Lancet 2:1138.
3.  Takano, I., S. Sato, S.B. Levy and T. Watanabe (1966)  Episomic 
resistance factors in
Enterobacteriaceae.  34.  The specific effects of the inhibitors of DNA 
synthesis on the
transfer of R factor and F factor.  Med. Biol. (Tokyo)  73:79-83.
4.  Levy, S.B. (1967)  Blood safari into Kenya.  The New Physician 16:50-54.
5.  Levy, S.B., W.T. Fitts and J.B. Leach (1967)  Surgical treatment of 
diverticular disease of the
colon:  Evaluation of an eleven-year period.  Annals Surg.  166:947-955.

As you can see, any single citation is broken over several lines as a 
result of a line break. I want it to look like this:

1.  Levy, S.B. (1964)  Isologous interference with ultraviolet and X-ray 

     irradiated bacteriophage T2.  J. Bacteriol. 87:1330-1338.
2.  Levy, S.B. and T. Watanabe (1966)  Mepacrine and transfer of R
     factor.  Lancet 2:1138.
3.  Takano, I., S. Sato, S.B. Levy and T. Watanabe (1966)  Episomic
     resistance factors in Enterobacteriaceae.  34.  The specific effects
     of the inhibitors of DNA synthesis on the
     transfer of R factor and F factor.  Med. Biol. (Tokyo)  73:79-83.
4.  Levy, S.B. (1967)  Blood safari into Kenya.  The New Physician
     16:50-54.
5.  Levy, S.B., W.T. Fitts and J.B. Leach (1967)  Surgical treatment of
     diverticular disease of the colon:  Evaluation of an eleven-year
     period.  Annals Surg.  166:947-955.

Now, since this is pasted, it might not even look good to you. But in 
the second example, the numbers are meant to be bullets and so the 
indentation would happen automatically (in Word). But for now they are 
just typed.



More information about the Python-list mailing list